From cedf84e6070b1f93f3abe7c9b280fa6351d0cf59 Mon Sep 17 00:00:00 2001 From: mckusick Date: Sat, 19 Oct 2002 05:36:48 +0000 Subject: 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. --- sbin/fsck_ffs/fsutil.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sbin/fsck_ffs') 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); -- cgit v1.1