diff options
author | bde <bde@FreeBSD.org> | 1999-12-23 15:42:14 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-12-23 15:42:14 +0000 |
commit | af5509c2c77b18f70bfd26f1e2149a1e39ef0819 (patch) | |
tree | a691551d1a7b0a95a2220b986bf09d1cab78eef2 /sys/ufs | |
parent | 47c0955e5dabdd4264f087253df6621f6707cb6d (diff) | |
download | FreeBSD-src-af5509c2c77b18f70bfd26f1e2149a1e39ef0819.zip FreeBSD-src-af5509c2c77b18f70bfd26f1e2149a1e39ef0819.tar.gz |
Update the unclean flag for mount -u. I forgot to handle this case
when I made the absence of the clean flag sticky in rev.1.88. This
was a problem main for "mount /". There is no way to mount "/" for
writing without using mount -u (normally implicitly), so after
"mount -f /" of an unclean filesystem, the absence of the clean flag
was sticky forever.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index ee6fe3e..18fb153 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -220,7 +220,9 @@ ffs_mount( mp, path, data, ndp, p) VOP_UNLOCK(devvp, 0, p); } + fs->fs_flags &= ~FS_UNCLEAN; if (fs->fs_clean == 0) { + fs->fs_flags |= FS_UNCLEAN; if (mp->mnt_flag & MNT_FORCE) { printf( "WARNING: %s was not properly dismounted\n", |