freebsd-skq/sbin/fsck_ffs
Konstantin Belousov 364e72457f For incompleted block allocations or frees, the inode block count usage
must be recalculated. The blk_check pass of suj checker explicitely marks
inodes which owned such blocks as needing block count adjustment. But
ino_adjblks() is only called by cg_trunc pass, which is performed before
blk_check. As result, the block use count for such inodes is left wrong.
This causes full fsck run after journaled run to still find inconsistencies
like 'INCORRECT BLOCK COUNT I=14557 (328 should be 0)' in phase 1.

Fix this issue by running additional adj_blk pass after blk_check, which
updates the field.

Reviewed by:	jeff, mckusick
MFC after:	1 week
2012-06-12 21:37:27 +00:00
..
dir.c
ea.c
fsck_ffs.8 Be more helpful about alternate superblocks. 2012-02-10 12:01:19 +00:00
fsck.h Spelling fixes for sbin/ 2012-01-07 16:09:33 +00:00
fsutil.c Spelling fixes for sbin/ 2012-01-07 16:09:33 +00:00
gjournal.c Fix warning when compiling with gcc46: 2012-01-10 02:59:50 +00:00
inode.c
main.c
Makefile
pass1.c
pass1b.c
pass2.c
pass3.c
pass4.c
pass5.c
setup.c Be more helpful about alternate superblocks. 2012-02-10 12:01:19 +00:00
suj.c For incompleted block allocations or frees, the inode block count usage 2012-06-12 21:37:27 +00:00
utilities.c