OSDN Git Service

New regression test which contains a corrupt ind. block in the journal inode
authorKalpak Shah <kalpak@clusterfs.com>
Thu, 21 Jun 2007 17:30:06 +0000 (13:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 21 Jun 2007 17:30:06 +0000 (13:30 -0400)
Signed-off-by: Kalpak Shah <kalpak@clusterfs.com>
Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
tests/ChangeLog
tests/f_badjour_indblks/expect.1 [new file with mode: 0644]
tests/f_badjour_indblks/expect.2 [new file with mode: 0644]
tests/f_badjour_indblks/image [new file with mode: 0644]
tests/f_badjour_indblks/image.gz [new file with mode: 0644]
tests/f_badjour_indblks/name [new file with mode: 0644]

index 8e853b3..0758864 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-21  Theodore Tso  <tytso@mit.edu>
+
+       * f_badjour_indblks: New test case which checks if a corrupted
+               indirect block in the journal inode will get caught.
+
 2007-04-10  Theodore Tso  <tytso@mit.edu>
 
        * f_dup4: New test cases which tests a bugfix in e2fsck where if an
diff --git a/tests/f_badjour_indblks/expect.1 b/tests/f_badjour_indblks/expect.1
new file mode 100644 (file)
index 0000000..c0de516
--- /dev/null
@@ -0,0 +1,33 @@
+Superblock has an invalid ext3 journal (inode 8).
+Clear? yes
+
+*** ext3 journal has been deleted - filesystem is now ext2 only ***
+
+Adding dirhash hint to filesystem.
+
+Pass 1: Checking inodes, blocks, and sizes
+Journal inode is not in use, but contains data.  Clear? 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:  -(82--1111)
+Fix? yes
+
+Free blocks count wrong for group #0 (7080, counted=8110).
+Fix? yes
+
+Free blocks count wrong (7080, counted=8110).
+Fix? yes
+
+Recreate journal to make the filesystem ext3 again?
+Fix? yes
+
+Creating journal (1024 blocks):  Done.
+
+*** journal has been re-created - filesystem is now ext3 again ***
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 11/256 files (9.1% non-contiguous), 1112/8192 blocks
+Exit status is 1
diff --git a/tests/f_badjour_indblks/expect.2 b/tests/f_badjour_indblks/expect.2
new file mode 100644 (file)
index 0000000..74153ad
--- /dev/null
@@ -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: 11/256 files (9.1% non-contiguous), 1112/8192 blocks
+Exit status is 0
diff --git a/tests/f_badjour_indblks/image b/tests/f_badjour_indblks/image
new file mode 100644 (file)
index 0000000..adbd1d7
Binary files /dev/null and b/tests/f_badjour_indblks/image differ
diff --git a/tests/f_badjour_indblks/image.gz b/tests/f_badjour_indblks/image.gz
new file mode 100644 (file)
index 0000000..67190c8
Binary files /dev/null and b/tests/f_badjour_indblks/image.gz differ
diff --git a/tests/f_badjour_indblks/name b/tests/f_badjour_indblks/name
new file mode 100644 (file)
index 0000000..674b99a
--- /dev/null
@@ -0,0 +1 @@
+corruption in journal inode's indirect blocks