From 5dfd5ef88d2c285050b7f120818e51045cfe845e Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 25 Apr 2013 00:28:05 -0400 Subject: [PATCH] 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" --- tests/f_zero_xattr/expect.1 | 7 +++++++ tests/f_zero_xattr/image.gz | Bin 0 -> 707 bytes tests/f_zero_xattr/name | 1 + tests/f_zero_xattr/script | 2 ++ 4 files changed, 10 insertions(+) create mode 100644 tests/f_zero_xattr/expect.1 create mode 100644 tests/f_zero_xattr/image.gz create mode 100644 tests/f_zero_xattr/name create mode 100644 tests/f_zero_xattr/script diff --git a/tests/f_zero_xattr/expect.1 b/tests/f_zero_xattr/expect.1 new file mode 100644 index 00000000..0733af6e --- /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 0000000000000000000000000000000000000000..40055520207601ed0dbd5f8f9a7cacad3004d831 GIT binary patch literal 707 zcmb2|=HQT7TM@{_oSB=Lp33m{u3?67pajE%?|PaZ(km8uwDWb%c8U@&+A2sTQ_L)4x6y3HGz)YY6Ikta)zBr~N{kuHBrux`lnFElYd& z;)~*SWs&=@F!1eOQ#!Xl(sb+3&pNBaK1=;`d2v4PO5WM|vsd1ow|n08Q}4Z(S_H42 zY4K1%;>C&o@0Z&AZXZ*>3q8=>7z+llK)qJpj!9w?$ zjEoG(;K75H*TvOtUG#o@Zx%tUk=p8z|8LU&t=D;;yZN2ixaelUwb3|Nrdn z-CD+bphp{k)1vW*$r~vxr14aA{Z2y F8335M83O