svn commit: r234025 - head/sys/fs/msdosfs
Kirk McKusick
mckusick at FreeBSD.org
Sun Apr 8 06:18:19 UTC 2012
Author: mckusick
Date: Sun Apr 8 06:18:18 2012
New Revision: 234025
URL: http://svn.freebsd.org/changeset/base/234025
Log:
Add I/O accounting to msdos filesystem.
Suggested and reviewed by: kib
Modified:
head/sys/fs/msdosfs/msdosfs_vfsops.c
Modified: head/sys/fs/msdosfs/msdosfs_vfsops.c
==============================================================================
--- head/sys/fs/msdosfs/msdosfs_vfsops.c Sun Apr 8 06:14:49 2012 (r234024)
+++ head/sys/fs/msdosfs/msdosfs_vfsops.c Sun Apr 8 06:18:18 2012 (r234025)
@@ -401,6 +401,8 @@ msdosfs_mount(struct mount *mp)
return error;
}
+ if (devvp->v_type == VCHR && devvp->v_rdev != NULL)
+ devvp->v_rdev->si_mountpt = mp;
vfs_mountedfrom(mp, from);
#ifdef MSDOSFS_DEBUG
printf("msdosfs_mount(): mp %p, pmp %p, inusemap %p\n", mp, pmp, pmp->pm_inusemap);
@@ -843,6 +845,8 @@ msdosfs_unmount(struct mount *mp, int mn
}
#endif
DROP_GIANT();
+ if (pmp->pm_devvp->v_type == VCHR && pmp->pm_devvp->v_rdev != NULL)
+ pmp->pm_devvp->v_rdev->si_mountpt = NULL;
g_topology_lock();
g_vfs_close(pmp->pm_cp);
g_topology_unlock();
More information about the svn-src-head
mailing list