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:
Chuck Silvers 2020-10-05 18:17:50 +00:00
parent 780766eb52
commit 8b88330ed6

View File

@ -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;