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:
parent
473ee77f29
commit
7e58bfacbe
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user