]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsprogs-tests-f_jchksum_blast_trans.patch
authorAndreas Dilger <adilger@sun.com>
Sat, 2 Feb 2008 08:52:27 +0000 (01:52 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Feb 2008 03:47:38 +0000 (22:47 -0500)
Regression test for the case of an incomplete last transaction to
not consider it corrupt.

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

diff --git a/tests/f_jchksum_blast_trans/expect.1 b/tests/f_jchksum_blast_trans/expect.1
new file mode 100644 (file)
index 0000000..7164085
--- /dev/null
@@ -0,0 +1,11 @@
+test_filesys: recovering journal
+JBD: Transaction 5 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_blast_trans/expect.2 b/tests/f_jchksum_blast_trans/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_blast_trans/image.gz b/tests/f_jchksum_blast_trans/image.gz
new file mode 100644 (file)
index 0000000..c33a922
Binary files /dev/null and b/tests/f_jchksum_blast_trans/image.gz differ
diff --git a/tests/f_jchksum_blast_trans/name b/tests/f_jchksum_blast_trans/name
new file mode 100644 (file)
index 0000000..4df22d4
--- /dev/null
@@ -0,0 +1 @@
+Journal which has last transaction corrupt