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.
This commit is contained in:
Bruce Evans 1999-12-23 15:42:14 +00:00
parent 473ee77f29
commit 7e58bfacbe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55029

View File

@ -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",