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>
bitmap-optimize
Theodore Ts'o 2012-04-10 23:50:37 -04:00
parent 2743499061
commit 7a069f1ca9
4 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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

BIN
tests/f_eofblocks/image.gz Normal file

Binary file not shown.

1
tests/f_eofblocks/name Normal file
View File

@ -0,0 +1 @@
blocks after i_size