From c8c59a31e247d512b3a0d1eea9196fcd1a90b37a Mon Sep 17 00:00:00 2001 From: tegge Date: Sun, 19 Mar 2006 21:09:19 +0000 Subject: Reduce probability of unmount failing after having unmounted snapshots. --- sys/ufs/ffs/ffs_vfsops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/ufs/ffs') diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 6ad9bc7..2cc5018 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1044,6 +1044,7 @@ ffs_flushfiles(mp, flags, td) if ((error = vflush(mp, 0, SKIPSYSTEM | flags, td)) != 0) return (error); ffs_snapshot_unmount(mp); + flags |= FORCECLOSE; /* * Here we fall through to vflush again to ensure * that we have gotten rid of all the system vnodes. -- cgit v1.1