diff options
author | Theodore Ts'o <tytso@mit.edu> | 2014-08-09 13:03:43 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-08-10 16:21:31 -0400 |
commit | 755e0771810e1ff7ff6abe35d1dc2db8e9c227c8 (patch) | |
tree | 397c419e93a0d2a0d5c86dbb0846a593470d6cb9 | |
parent | 9974f8c2beaa8969cf3bc8b09a53b2daa6b11fd7 (diff) | |
download | e2fsprogs-755e0771810e1ff7ff6abe35d1dc2db8e9c227c8.tar.gz |
tests: add f_first_meta_bg_too_big test
The test verifies that e2fsck can properly fix a file system where the
value of s_first_meta_bg in the superblock is larger than the number
of block group descriptors in the file system. E2fsck will fix this
by clearing the meta_bg feature.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | tests/f_first_meta_bg_too_big/expect.1 | 20 | ||||
-rw-r--r-- | tests/f_first_meta_bg_too_big/expect.2 | 7 | ||||
-rw-r--r-- | tests/f_first_meta_bg_too_big/image.gz | bin | 0 -> 533 bytes | |||
-rw-r--r-- | tests/f_first_meta_bg_too_big/name | 1 |
4 files changed, 28 insertions, 0 deletions
diff --git a/tests/f_first_meta_bg_too_big/expect.1 b/tests/f_first_meta_bg_too_big/expect.1 new file mode 100644 index 00000000..85786bda --- /dev/null +++ b/tests/f_first_meta_bg_too_big/expect.1 @@ -0,0 +1,20 @@ +First_meta_bg is too big. (2, max value 1). Clear? yes + +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 +Block bitmap differences: -3 +Fix? yes + +Free blocks count wrong for group #0 (79, counted=80). +Fix? yes + +Free blocks count wrong (79, counted=80). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 11/16 files (0.0% non-contiguous), 20/100 blocks +Exit status is 1 diff --git a/tests/f_first_meta_bg_too_big/expect.2 b/tests/f_first_meta_bg_too_big/expect.2 new file mode 100644 index 00000000..44bff624 --- /dev/null +++ b/tests/f_first_meta_bg_too_big/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: 11/16 files (0.0% non-contiguous), 20/100 blocks +Exit status is 0 diff --git a/tests/f_first_meta_bg_too_big/image.gz b/tests/f_first_meta_bg_too_big/image.gz Binary files differnew file mode 100644 index 00000000..52793704 --- /dev/null +++ b/tests/f_first_meta_bg_too_big/image.gz diff --git a/tests/f_first_meta_bg_too_big/name b/tests/f_first_meta_bg_too_big/name new file mode 100644 index 00000000..47ec96db --- /dev/null +++ b/tests/f_first_meta_bg_too_big/name @@ -0,0 +1 @@ +s_first_meta_bg is too large |