diff options
author | 2007-05-29 19:02:33 +0000 | |
---|---|---|
committer | 2007-05-29 19:02:33 +0000 | |
commit | 42bdbea34e47673dba410899488ae5080fb309d6 (patch) | |
tree | ebe595b3081e68bf6488a94d3043e3bcf1fd1b28 | |
parent | do not start relay processes when no L7 load balancing is needed. (diff) | |
download | wireguard-openbsd-42bdbea34e47673dba410899488ae5080fb309d6.tar.xz wireguard-openbsd-42bdbea34e47673dba410899488ae5080fb309d6.zip |
when mount -f'ing a dirty filesystem, do not clear the unclean flag,
the fs remains dirty. ok pedro@
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 906532b4b8c..c9a5d6134fd 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_vfsops.c,v 1.105 2007/05/29 18:40:53 pedro Exp $ */ +/* $OpenBSD: ffs_vfsops.c,v 1.106 2007/05/29 19:02:33 otto Exp $ */ /* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */ /* @@ -752,7 +752,6 @@ ffs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p) fs->fs_fmod = 0; fs->fs_flags &= ~FS_UNCLEAN; if (fs->fs_clean == 0) { - fs->fs_flags |= FS_UNCLEAN; #if 0 /* * It is safe mount unclean file system @@ -809,6 +808,8 @@ ffs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p) ffs1_compat_read(fs, ump, sbloc); + if (fs->fs_clean == 0) + fs->fs_flags |= FS_UNCLEAN; fs->fs_ronly = ronly; size = fs->fs_cssize; blks = howmany(size, fs->fs_fsize); |