e2fsprogs/tests/f_lpf
Theodore Ts'o d0efd17a43 e2fsck: check and fix tails of all bitmap blocks
Currently, e2fsck effectively checks only tail of the last inode and
block bitmap in the filesystem. Thus if some previous bitmap has unset
bits it goes unnoticed.  Mostly these tail bits in the bitmap are
ignored; however, if blocks_per_group are smaller than 8*blocksize,
the multi-block allocator in the kernel can get confused when the tail
bits are unset and return bogus free extent.

Add support to libext2fs to check these bitmap tails when loading
bitmaps (as that's about the only place which has access to the bitmap
tail bits) and make e2fsck use this functionality to detect buggy bitmap
tails and fix them (by rewriting the bitmaps).

Reported-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
2019-05-06 10:15:29 -04:00
..
expect.1 e2fsck: check and fix tails of all bitmap blocks 2019-05-06 10:15:29 -04:00
expect.2 Many files: 1997-04-29 14:53:37 +00:00
image.gz Many files: 1997-04-29 14:53:37 +00:00
name Many files: 1997-04-26 14:00:26 +00:00