aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-04-10 23:50:37 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-04-10 23:50:37 -0400
commit7a069f1ca9dcd6e525d51924d0d873ceb979da5e (patch)
treefeb042ba15598e921a452deff05f137f6c5466f1 /tests
parent2743499061f96a2c16fe597102f5c8ba2d7f1ebe (diff)
downloade2fsprogs-7a069f1ca9dcd6e525d51924d0d873ceb979da5e.tar.gz
e2fsprogs-7a069f1ca9dcd6e525d51924d0d873ceb979da5e.tar.xz
e2fsprogs-7a069f1ca9dcd6e525d51924d0d873ceb979da5e.zip
tests: add new test f_eofblocks
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/f_eofblocks/expect.113
-rw-r--r--tests/f_eofblocks/expect.27
-rw-r--r--tests/f_eofblocks/image.gzbin0 -> 1364 bytes
-rw-r--r--tests/f_eofblocks/name1
4 files changed, 21 insertions, 0 deletions
diff --git a/tests/f_eofblocks/expect.1 b/tests/f_eofblocks/expect.1
new file mode 100644
index 00000000..2e9133e1
--- /dev/null
+++ b/tests/f_eofblocks/expect.1
@@ -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
index 00000000..2a2bca5c
--- /dev/null
+++ b/tests/f_eofblocks/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: 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
index 00000000..2586a6a7
--- /dev/null
+++ b/tests/f_eofblocks/image.gz
Binary files differ
diff --git a/tests/f_eofblocks/name b/tests/f_eofblocks/name
new file mode 100644
index 00000000..d93adc19
--- /dev/null
+++ b/tests/f_eofblocks/name
@@ -0,0 +1 @@
+blocks after i_size