summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-12-25 22:47:03 -0500
committerTheodore Ts'o <tytso@mit.edu>2008-12-25 22:47:03 -0500
commita558d5dc226efd23f7f5c8e7a3ec044239ed292d (patch)
tree94c818aabaa96f0a686f45a2192cc14720699d95 /tests
parent7518c176867099eb529502103106501861a71280 (diff)
downloade2fsprogs-a558d5dc226efd23f7f5c8e7a3ec044239ed292d.tar.gz
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" <tytso@mit.edu>
Diffstat (limited to 'tests')
-rw-r--r--tests/f_extent_bad_node/expect.123
-rw-r--r--tests/f_extent_bad_node/expect.27
-rw-r--r--tests/f_extent_bad_node/image.gzbin0 -> 1254 bytes
-rw-r--r--tests/f_extent_bad_node/name1
4 files changed, 31 insertions, 0 deletions
diff --git a/tests/f_extent_bad_node/expect.1 b/tests/f_extent_bad_node/expect.1
new file mode 100644
index 00000000..0c0bc287
--- /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 00000000..568c792e
--- /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 00000000..01d9b45f
--- /dev/null
+++ b/tests/f_extent_bad_node/image.gz
Binary files differ
diff --git a/tests/f_extent_bad_node/name b/tests/f_extent_bad_node/name
new file mode 100644
index 00000000..9c9d79fc
--- /dev/null
+++ b/tests/f_extent_bad_node/name
@@ -0,0 +1 @@
+bad interior node in extent tree