]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsprogs-tests-f_ibadness_bad_extents.patch
authorAndreas Dilger <adilger@sun.com>
Sat, 2 Feb 2008 08:44:44 +0000 (01:44 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Feb 2008 03:35:35 +0000 (22:35 -0500)
Test case for bad extents inodes.

Signed-off-by: Andreas Dilger <adilger@sun.com>
tests/f_ibadness_bad_extents/expect.1 [new file with mode: 0644]
tests/f_ibadness_bad_extents/expect.2 [new file with mode: 0644]
tests/f_ibadness_bad_extents/image.gz [new file with mode: 0644]
tests/f_ibadness_bad_extents/name [new file with mode: 0644]

diff --git a/tests/f_ibadness_bad_extents/expect.1 b/tests/f_ibadness_bad_extents/expect.1
new file mode 100644 (file)
index 0000000..b9b03be
--- /dev/null
@@ -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 (file)
index 0000000..1ffe7ed
--- /dev/null
@@ -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 (file)
index 0000000..1c267f0
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 (file)
index 0000000..58bd208
--- /dev/null
@@ -0,0 +1 @@
+All in inode extents corrupt