1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/sys/msdosfs
Ian Dowse 0864ef1e8a Change the second argument of vflush() to an integer that specifies
the number of references on the filesystem root vnode to be both
expected and released. Many filesystems hold an extra reference on
the filesystem root vnode, which must be accounted for when
determining if the filesystem is busy and then released if it isn't
busy. The old `skipvp' approach required individual filesystem
xxx_unmount functions to re-implement much of vflush()'s logic to
deal with the root vnode.

All 9 filesystems that hold an extra reference on the root vnode
got the logic wrong in the case of forced unmounts, so `umount -f'
would always fail if there were any extra root vnode references.
Fix this issue centrally in vflush(), now that we can.

This commit also fixes a vnode reference leak in devfs, which could
result in idle devfs filesystems that refuse to unmount.

Reviewed by:	phk, bp
2001-05-16 18:04:37 +00:00
..
bootsect.h Fix typo: seperate -> separate. 2001-02-06 11:21:58 +00:00
bpb.h Quick fix for msdsofs_write() on alphas and other machines with either 2000-08-25 09:03:58 +00:00
denode.h Remove de_lock field from denode structure and make msdosfs PDIRUNLOCK aware. 2000-10-22 14:22:17 +00:00
direntry.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 05:07:58 +00:00
fat.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 05:07:58 +00:00
msdosfs_conv.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
msdosfs_denode.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
msdosfs_fat.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
msdosfs_lookup.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
msdosfs_vfsops.c Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
msdosfs_vnops.c Implement vop_std{get|put}pages() and add them to the default vop[]. 2001-05-01 08:34:45 +00:00
msdosfsmount.h Move the netexport structure from the fs-specific mountstructure 2001-04-25 07:07:52 +00:00