Whamcloud - gitweb
tests: add regression tests for group descriptors with bad checksums
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 3 Aug 2014 03:50:52 +0000 (23:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 3 Aug 2014 03:50:52 +0000 (23:50 -0400)
commitf093caf15eefdf9308b13ac2a076891b4bfc1eb9
tree14c04f86ae3917875888f921bdc052a7636544cf
parentf882feb3bbf7f2930a915549887e56eee8160811
tests: add regression tests for group descriptors with bad checksums

Add tests to examine how e2fsck deals with (a) the block bitmap being
corrupt; (b) the inode bitmap being corrupt; (c) the bitmap checksums
being incorrect (but the bitmaps are fine); and (d) the group
descriptor checksum itself is incorrect.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
16 files changed:
tests/f_bad_bbitmap/expect.1 [new file with mode: 0644]
tests/f_bad_bbitmap/expect.2 [new file with mode: 0644]
tests/f_bad_bbitmap/image.gz [new file with mode: 0644]
tests/f_bad_bbitmap/name [new file with mode: 0644]
tests/f_bad_bmap_csum/expect.1 [new file with mode: 0644]
tests/f_bad_bmap_csum/expect.2 [new file with mode: 0644]
tests/f_bad_bmap_csum/image.gz [new file with mode: 0644]
tests/f_bad_bmap_csum/name [new file with mode: 0644]
tests/f_bad_gdt_csum/expect.1 [new file with mode: 0644]
tests/f_bad_gdt_csum/expect.2 [new file with mode: 0644]
tests/f_bad_gdt_csum/image.gz [new file with mode: 0644]
tests/f_bad_gdt_csum/name [new file with mode: 0644]
tests/f_bad_ibitmap/expect.1 [new file with mode: 0644]
tests/f_bad_ibitmap/expect.2 [new file with mode: 0644]
tests/f_bad_ibitmap/image.gz [new file with mode: 0644]
tests/f_bad_ibitmap/name [new file with mode: 0644]