From: Andreas Dilger Date: Sat, 2 Feb 2008 08:44:44 +0000 (-0700) Subject: e2fsprogs-tests-f_ibadness_bad_extents.patch X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e4377458807b2110f940642fe84f6a12e476ca;p=thirdparty%2Fe2fsprogs.git e2fsprogs-tests-f_ibadness_bad_extents.patch Test case for bad extents inodes. Signed-off-by: Andreas Dilger --- diff --git a/tests/f_ibadness_bad_extents/expect.1 b/tests/f_ibadness_bad_extents/expect.1 new file mode 100644 index 000000000..b9b03be4e --- /dev/null +++ b/tests/f_ibadness_bad_extents/expect.1 @@ -0,0 +1,34 @@ +Pass 1: Checking inodes, blocks, and sizes +Inode 12 has corrupt extent at block 0 (logical 1231231222) length 492 +Clear? yes + +Inode 12 has corrupt extent at block 556 (logical 4294967295) length 45 +Clear? yes + +Inode 12 has corrupt extent at block 666 (logical 4294967295) length 5 +Clear? yes + +Inode 12 has corrupt extent at block 700 (logical 4294967295) length 45 +Clear? yes + +Inode 12, i_blocks is 984, should be 0. Fix? yes + +Pass 2: Checking directory structure +Inode 12 is badly corrupt (badness value = 9). Clear? yes + +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +Block bitmap differences: -(6145--6636) +Fix? yes + +Free blocks count wrong for group #0 (6525, counted=7017). +Fix? yes + +Free blocks count wrong (14584, counted=15076). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 11/2048 files (0.0% non-contiguous), 1308/16384 blocks +Exit status is 1 diff --git a/tests/f_ibadness_bad_extents/expect.2 b/tests/f_ibadness_bad_extents/expect.2 new file mode 100644 index 000000000..1ffe7ed3b --- /dev/null +++ b/tests/f_ibadness_bad_extents/expect.2 @@ -0,0 +1,9 @@ +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: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 11/2048 files (0.0% non-contiguous), 1308/16384 blocks +Exit status is 1 diff --git a/tests/f_ibadness_bad_extents/image.gz b/tests/f_ibadness_bad_extents/image.gz new file mode 100644 index 000000000..1c267f0e3 Binary files /dev/null and b/tests/f_ibadness_bad_extents/image.gz differ diff --git a/tests/f_ibadness_bad_extents/name b/tests/f_ibadness_bad_extents/name new file mode 100644 index 000000000..58bd20870 --- /dev/null +++ b/tests/f_ibadness_bad_extents/name @@ -0,0 +1 @@ +All in inode extents corrupt