Fix compilation of fstat.

The udev should now be obtained from the dosmount instead of the denode.
This commit is contained in:
ed 2009-02-28 10:40:37 +00:00
parent f05698585d
commit 00646e6e14

View File

@ -110,7 +110,7 @@ msdosfs_filestat(struct vnode *vp, struct filestat *fsp)
mnt->kptr = denode.de_pmp;
}
fsp->fsid = dev2udev(denode.de_dev);
fsp->fsid = dev2udev(mnt->data.pm_dev);
fsp->mode = 0555;
fsp->mode |= denode.de_Attributes & ATTR_READONLY ? 0 : 0222;
fsp->mode &= mnt->data.pm_mask;