From: Theodore Ts'o Date: Thu, 25 Apr 2013 04:28:05 +0000 (-0400) Subject: tests: add new test f_zero_xattr X-Git-Tag: v1.42.8~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dfd5ef88d2c285050b7f120818e51045cfe845e;p=thirdparty%2Fe2fsprogs.git 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" --- diff --git a/tests/f_zero_xattr/expect.1 b/tests/f_zero_xattr/expect.1 new file mode 100644 index 000000000..0733af6e9 --- /dev/null +++ b/tests/f_zero_xattr/expect.1 @@ -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 diff --git a/tests/f_zero_xattr/image.gz b/tests/f_zero_xattr/image.gz new file mode 100644 index 000000000..400555202 Binary files /dev/null and b/tests/f_zero_xattr/image.gz differ diff --git a/tests/f_zero_xattr/name b/tests/f_zero_xattr/name new file mode 100644 index 000000000..52aab1521 --- /dev/null +++ b/tests/f_zero_xattr/name @@ -0,0 +1 @@ +zero length extended attribute in in-inode xattr diff --git a/tests/f_zero_xattr/script b/tests/f_zero_xattr/script new file mode 100644 index 000000000..8ab2b9c61 --- /dev/null +++ b/tests/f_zero_xattr/script @@ -0,0 +1,2 @@ +ONE_PASS_ONLY="true" +. $cmd_dir/run_e2fsck