Whamcloud - gitweb
tests: add new test f_eofblocks
authorTheodore Ts'o <tytso@mit.edu>
Wed, 11 Apr 2012 03:50:37 +0000 (23:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 11 Apr 2012 03:50:37 +0000 (23:50 -0400)
Since we have changed the eofblocks handling in e2fsck (by removing
the need for the EOFBLOCKS_FL flag), we should have a test to check
out how we handle uninitialized and initialized blocks which are exist
beyond i_size, with files that have (and don't have) the EOFBLOCKS_FL.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
tests/f_eofblocks/expect.1 [new file with mode: 0644]
tests/f_eofblocks/expect.2 [new file with mode: 0644]
tests/f_eofblocks/image.gz [new file with mode: 0644]
tests/f_eofblocks/name [new file with mode: 0644]

diff --git a/tests/f_eofblocks/expect.1 b/tests/f_eofblocks/expect.1
new file mode 100644 (file)
index 0000000..2e9133e
--- /dev/null
@@ -0,0 +1,13 @@
+Pass 1: Checking inodes, blocks, and sizes
+Inode 30, i_size is 2048, should be 4096.  Fix? yes
+
+Inode 31, i_size is 2048, should be 4096.  Fix? yes
+
+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: 31/56 files (29.0% non-contiguous), 83/400 blocks
+Exit status is 1
diff --git a/tests/f_eofblocks/expect.2 b/tests/f_eofblocks/expect.2
new file mode 100644 (file)
index 0000000..2a2bca5
--- /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: 31/56 files (29.0% non-contiguous), 83/400 blocks
+Exit status is 0
diff --git a/tests/f_eofblocks/image.gz b/tests/f_eofblocks/image.gz
new file mode 100644 (file)
index 0000000..2586a6a
Binary files /dev/null and b/tests/f_eofblocks/image.gz differ
diff --git a/tests/f_eofblocks/name b/tests/f_eofblocks/name
new file mode 100644 (file)
index 0000000..d93adc1
--- /dev/null
@@ -0,0 +1 @@
+blocks after i_size