]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsprogs-tests-f_jchksum_bblk.patch
authorAndreas Dilger <adilger@sun.com>
Sat, 2 Feb 2008 08:50:11 +0000 (01:50 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Feb 2008 03:45:50 +0000 (22:45 -0500)
Regression test for journal checksum feature where there is a corrupt
block in an uncommitted transaction.

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

diff --git a/tests/f_jchksum_bblk/expect.1 b/tests/f_jchksum_bblk/expect.1
new file mode 100644 (file)
index 0000000..4386762
--- /dev/null
@@ -0,0 +1,11 @@
+test_filesys: recovering journal
+JBD: Transaction 4 found to be corrupt.
+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: 12/2048 files (16.7% non-contiguous), 8192/8192 blocks
+Exit status is 1
diff --git a/tests/f_jchksum_bblk/expect.2 b/tests/f_jchksum_bblk/expect.2
new file mode 100644 (file)
index 0000000..37b223f
--- /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: 12/2048 files (16.7% non-contiguous), 8192/8192 blocks
+Exit status is 0
diff --git a/tests/f_jchksum_bblk/image.gz b/tests/f_jchksum_bblk/image.gz
new file mode 100644 (file)
index 0000000..cb12d2f
Binary files /dev/null and b/tests/f_jchksum_bblk/image.gz differ
diff --git a/tests/f_jchksum_bblk/name b/tests/f_jchksum_bblk/name
new file mode 100644 (file)
index 0000000..db662d1
--- /dev/null
@@ -0,0 +1 @@
+Journal in which second last transaction is corrupt