diff options
author | tegge <tegge@FreeBSD.org> | 2006-03-19 21:09:19 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 2006-03-19 21:09:19 +0000 |
commit | c8c59a31e247d512b3a0d1eea9196fcd1a90b37a (patch) | |
tree | d2a632bb5fb0a209d8fdcf2fba403c252134ac41 /sys | |
parent | fe329e36c77c21b12b75b60ad9364fcd29e03245 (diff) | |
download | FreeBSD-src-c8c59a31e247d512b3a0d1eea9196fcd1a90b37a.zip FreeBSD-src-c8c59a31e247d512b3a0d1eea9196fcd1a90b37a.tar.gz |
Reduce probability of unmount failing after having unmounted snapshots.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 1 |
1 files changed, 1 insertions, 0 deletions
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. |