mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
ufs: restore uniqueness of st_dev as returned by ufs_stat()
switch ufs_stat() to use the same value for st_dev as was used by the previous ufs_getattr() stat path. Submitted by: gallatin Reviewed by: mjg, imp, kib, mckusick Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D26596
This commit is contained in:
parent
780766eb52
commit
8b88330ed6
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ ufs_stat(struct vop_stat_args *ap)
|
|||
}
|
||||
VI_UNLOCK(vp);
|
||||
|
||||
sb->st_dev = vp->v_mount->mnt_stat.f_fsid.val[0];
|
||||
sb->st_dev = dev2udev(ITOUMP(ip)->um_dev);
|
||||
sb->st_ino = ip->i_number;
|
||||
sb->st_mode = (ip->i_mode & ~IFMT) | VTTOIF(vp->v_type);
|
||||
sb->st_nlink = ip->i_effnlink;
|
||||
|
|
|
|||
Loading…
Reference in a new issue