try stop the user from using mount -u to set the async flag on
a filesystem currently using soft updates. Also needs a new copy of ffs_softdep.c to complete the fix.
This commit is contained in:
parent
f43e9d2251
commit
c11d29814e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36147
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ffs_vfsops.c 8.31 (Berkeley) 5/20/95
|
||||
* $Id: ffs_vfsops.c,v 1.80 1998/04/20 03:57:41 julian Exp $
|
||||
* $Id: ffs_vfsops.c,v 1.81 1998/05/06 05:29:40 msmith Exp $
|
||||
*/
|
||||
|
||||
#include "opt_devfs.h" /* for SLICE */
|
||||
@ -261,6 +261,16 @@ ffs_mount( mp, path, data, ndp, p)
|
||||
|
||||
fs->fs_ronly = 0;
|
||||
}
|
||||
/*
|
||||
* Soft updates is incompatible with "async",
|
||||
* so if we are doing softupdates stop the user
|
||||
* from setting the async flag in an update.
|
||||
* Softdep_mount() clears it in an initial mount
|
||||
* or ro->rw remount.
|
||||
*/
|
||||
if (mp->mnt_flag & MNT_SOFTDEP) {
|
||||
mp->mnt_flag &= ~MNT_ASYNC;
|
||||
}
|
||||
if (fs->fs_ronly == 0) {
|
||||
fs->fs_clean = 0;
|
||||
ffs_sbupdate(ump, MNT_WAIT);
|
||||
|
Loading…
Reference in New Issue
Block a user