From: Theodore Ts'o Date: Fri, 26 Dec 2008 03:47:03 +0000 (-0500) Subject: Add e2fsck regression test case f_extent_bad_node X-Git-Tag: v1.41.4~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a558d5dc226efd23f7f5c8e7a3ec044239ed292d;p=thirdparty%2Fe2fsprogs.git Add e2fsck regression test case f_extent_bad_node This test case is designed to test e2fsck's ability to deal with a corrupted interior node in an extent tree. Signed-off-by: "Theodore Ts'o" --- diff --git a/tests/f_extent_bad_node/expect.1 b/tests/f_extent_bad_node/expect.1 new file mode 100644 index 000000000..0c0bc287b --- /dev/null +++ b/tests/f_extent_bad_node/expect.1 @@ -0,0 +1,23 @@ +Pass 1: Checking inodes, blocks, and sizes +Inode 12 has an invalid extent node (blk 22, lblk 0) +Clear? yes + +Inode 12, i_blocks is 16, should be 8. Fix? yes + +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +Block bitmap differences: -(21--23) -25 +Fix? yes + +Free blocks count wrong for group #0 (71, counted=75). +Fix? yes + +Free blocks count wrong (71, counted=75). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 12/16 files (0.0% non-contiguous), 25/100 blocks +Exit status is 1 diff --git a/tests/f_extent_bad_node/expect.2 b/tests/f_extent_bad_node/expect.2 new file mode 100644 index 000000000..568c792ed --- /dev/null +++ b/tests/f_extent_bad_node/expect.2 @@ -0,0 +1,7 @@ +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +test_filesys: 12/16 files (0.0% non-contiguous), 25/100 blocks +Exit status is 0 diff --git a/tests/f_extent_bad_node/image.gz b/tests/f_extent_bad_node/image.gz new file mode 100644 index 000000000..01d9b45f1 Binary files /dev/null and b/tests/f_extent_bad_node/image.gz differ diff --git a/tests/f_extent_bad_node/name b/tests/f_extent_bad_node/name new file mode 100644 index 000000000..9c9d79fc9 --- /dev/null +++ b/tests/f_extent_bad_node/name @@ -0,0 +1 @@ +bad interior node in extent tree