summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-08-23 21:07:13 +0000
committerbde <bde@FreeBSD.org>1999-08-23 21:07:13 +0000
commitb112e147a149c0400623d7b90ea51c16eda3720f (patch)
tree54a0e90f5c4d374cb8602fd0dcdbb94c3748949c /sys/msdosfs
parenta9f46ba20de99dba4788fc06cb53f20217ad205f (diff)
downloadFreeBSD-src-b112e147a149c0400623d7b90ea51c16eda3720f.zip
FreeBSD-src-b112e147a149c0400623d7b90ea51c16eda3720f.tar.gz
Initialise fsids with (user) device numbers again. Bitrot when dev_t's
were changed to pointers was obscured by casting dev_t's to longs. fsids haven't even been comprised of longs since the Lite2 merge.
Diffstat (limited to 'sys/msdosfs')
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index 2729126..f8c7392 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vfsops.c,v 1.46 1999/08/08 18:42:54 phk Exp $ */
+/* $Id: msdosfs_vfsops.c,v 1.47 1999/08/13 10:29:26 phk Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
/*-
@@ -730,7 +730,7 @@ mountmsdosfs(devvp, mp, p, argp)
else
pmp->pm_fmod = 1;
mp->mnt_data = (qaddr_t) pmp;
- mp->mnt_stat.f_fsid.val[0] = (long)dev;
+ mp->mnt_stat.f_fsid.val[0] = dev2udev(dev);
mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
mp->mnt_flag |= MNT_LOCAL;
devvp->v_specmountpoint = mp;
OpenPOWER on IntegriCloud