]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsprogs-tests-f_jchksum_remount.patch
authorAndreas Dilger <adilger@sun.com>
Sat, 2 Feb 2008 08:53:18 +0000 (01:53 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Feb 2008 03:49:03 +0000 (22:49 -0500)
Check a journal that was mounted by a kernel without CHECKSUM
support after the CHECKSUM flag is set in the journal superblock.

Signed-off-by: "Andreas Dilger <adilger@sun.com>"
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_remount/expect.1 b/tests/f_jchksum_remount/expect.1
new file mode 100644 (file)
index 0000000..fd885ff
--- /dev/null
@@ -0,0 +1,10 @@
+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
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 128/2048 files (1.6% 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..6874573
--- /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 (1.6% 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..3325e14
--- /dev/null
@@ -0,0 +1 @@
+Journal with checksum flag set but no chksum in commit block