From: Andreas Dilger Date: Fri, 13 Apr 2012 07:50:29 +0000 (-0600) Subject: tests: add checks for journal checksum feature X-Git-Tag: v1.42.13.wc1~18 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6eb799437116d6e4bb11d4bb84ee7cabfc2ea45b;p=tools%2Fe2fsprogs.git tests: add checks for journal checksum feature 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 --- diff --git a/tests/f_jchksum_bblk/expect.1 b/tests/f_jchksum_bblk/expect.1 new file mode 100644 index 0000000..045c293 --- /dev/null +++ b/tests/f_jchksum_bblk/expect.1 @@ -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 index 0000000..919eed0 --- /dev/null +++ b/tests/f_jchksum_bblk/expect.2 @@ -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 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 index 0000000..db662d1 --- /dev/null +++ b/tests/f_jchksum_bblk/name @@ -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 index 0000000..7178f37 --- /dev/null +++ b/tests/f_jchksum_blast_trans/expect.1 @@ -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 index 0000000..919eed0 --- /dev/null +++ b/tests/f_jchksum_blast_trans/expect.2 @@ -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 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 index 0000000..4df22d4 --- /dev/null +++ b/tests/f_jchksum_blast_trans/name @@ -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 index 0000000..23231c8 --- /dev/null +++ b/tests/f_jchksum_remount/expect.1 @@ -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 index 0000000..fed7075 --- /dev/null +++ b/tests/f_jchksum_remount/expect.2 @@ -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 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 index 0000000..2b4e9f4 --- /dev/null +++ b/tests/f_jchksum_remount/name @@ -0,0 +1 @@ +Journal sb with checksum flag but not in commit block