diff options
-rw-r--r-- | sbin/fsck_ffs/fsutil.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/fsutil.c b/sbin/fsck_ffs/fsutil.c index 705426a..60b455b 100644 --- a/sbin/fsck_ffs/fsutil.c +++ b/sbin/fsck_ffs/fsutil.c @@ -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); |