Whamcloud - gitweb
tests: add checks for journal checksum feature
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 13 Apr 2012 07:50:29 +0000 (01:50 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 29 May 2012 08:09:26 +0000 (02:09 -0600)
f_jchksum_bblk: journal checksum feature where there is a corrupt
block in an uncommitted transaction
f_jchksum_blast_trans: incomplete last trans not considered bad
f_jchksum_remount: check journal mounted by a kernel without
CHECKSUM support after CHECKSUM is in journal superblock

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
12 files changed:
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]
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]
tests/f_jchksum_remount/expect.1 [new file with mode: 0644]
tests/f_jchksum_remount/expect.2 [new file with mode: 0644]
tests/f_jchksum_remount/image.gz [new file with mode: 0644]
tests/f_jchksum_remount/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..045c293
--- /dev/null
@@ -0,0 +1,17 @@
+test_filesys: recovering journal
+Journal transaction 4 was corrupt, replay was aborted.
+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
+Free blocks count wrong (6856, counted=0).
+Fix? yes
+
+Free inodes count wrong (2037, counted=2036).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 12/2048 files (8.3% 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..919eed0
--- /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 (8.3% 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
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..7178f37
--- /dev/null
@@ -0,0 +1,17 @@
+test_filesys: recovering journal
+Journal transaction 5 was corrupt, replay was aborted.
+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
+Free blocks count wrong (6856, counted=0).
+Fix? yes
+
+Free inodes count wrong (2037, counted=2036).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 12/2048 files (8.3% 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..919eed0
--- /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 (8.3% 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
diff --git a/tests/f_jchksum_remount/expect.1 b/tests/f_jchksum_remount/expect.1
new file mode 100644 (file)
index 0000000..23231c8
--- /dev/null
@@ -0,0 +1,13 @@
+test_filesys: recovering journal
+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
+Free inodes count wrong (2036, counted=1920).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 128/2048 files (0.8% non-contiguous), 8192/8192 blocks
+Exit status is 1
diff --git a/tests/f_jchksum_remount/expect.2 b/tests/f_jchksum_remount/expect.2
new file mode 100644 (file)
index 0000000..fed7075
--- /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: 128/2048 files (0.8% non-contiguous), 8192/8192 blocks
+Exit status is 0
diff --git a/tests/f_jchksum_remount/image.gz b/tests/f_jchksum_remount/image.gz
new file mode 100644 (file)
index 0000000..a70eca9
Binary files /dev/null and b/tests/f_jchksum_remount/image.gz differ
diff --git a/tests/f_jchksum_remount/name b/tests/f_jchksum_remount/name
new file mode 100644 (file)
index 0000000..2b4e9f4
--- /dev/null
@@ -0,0 +1 @@
+Journal sb with checksum flag but not in commit block