e2fsprogs/tests/j_recover_csum2_64bit
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 tests: test recovery of 32 and 64-bit journals with the v2 checksum 2014-09-11 16:52:40 -04:00
image.bz2 tests: test recovery of 32 and 64-bit journals with the v2 checksum 2014-09-11 16:52:40 -04:00
name tests: test recovery of 32 and 64-bit journals with the v2 checksum 2014-09-11 16:52:40 -04:00
script tests: don't run sed multiple times on test output 2018-06-22 17:59:35 -04:00