tests: add new test f_zero_xattr

E2fsck previously was complaining with zero-length extended attributes
if they appeared in the in-inode xattr space.  Test to make sure
e2fsck is now happy with such xattrs.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian-1.42.9
Theodore Ts'o 2013-04-25 00:28:05 -04:00
parent 10fc3a63d9
commit 5dfd5ef88d
4 changed files with 10 additions and 0 deletions

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: 12/24 files (0.0% non-contiguous), 25/200 blocks
Exit status is 0

BIN
tests/f_zero_xattr/image.gz Normal file

Binary file not shown.

1
tests/f_zero_xattr/name Normal file
View File

@ -0,0 +1 @@
zero length extended attribute in in-inode xattr

View File

@ -0,0 +1,2 @@
ONE_PASS_ONLY="true"
. $cmd_dir/run_e2fsck