Clear the pending counts in the superblock after a successful run
of fsck so that the kernel does not complain about them being non-zero when the filesystem is mounted. Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
f5b07e11ad
commit
68aff0840c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105436
@ -315,8 +315,11 @@ ckfini(int markclean)
|
||||
errx(EEXIT, "panic: lost %d buffers", bufhead.b_size - cnt);
|
||||
pbp = pdirbp = (struct bufarea *)0;
|
||||
if (cursnapshot == 0 && sblock.fs_clean != markclean) {
|
||||
if ((sblock.fs_clean = markclean) != 0)
|
||||
if ((sblock.fs_clean = markclean) != 0) {
|
||||
sblock.fs_flags &= ~(FS_UNCLEAN | FS_NEEDSFSCK);
|
||||
sblock.fs_pendingblocks = 0;
|
||||
sblock.fs_pendinginodes = 0;
|
||||
}
|
||||
sbdirty();
|
||||
ofsmodified = fsmodified;
|
||||
flush(fswritefd, &sblk);
|
||||
|
Loading…
Reference in New Issue
Block a user