OSDN Git Service

tests: add new test f_zero_xattr
authorTheodore Ts'o <tytso@mit.edu>
Thu, 25 Apr 2013 04:28:05 +0000 (00:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 Apr 2013 04:29:09 +0000 (00:29 -0400)
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>
tests/f_zero_xattr/expect.1 [new file with mode: 0644]
tests/f_zero_xattr/image.gz [new file with mode: 0644]
tests/f_zero_xattr/name [new file with mode: 0644]
tests/f_zero_xattr/script [new file with mode: 0644]

diff --git a/tests/f_zero_xattr/expect.1 b/tests/f_zero_xattr/expect.1
new file mode 100644 (file)
index 0000000..0733af6
--- /dev/null
@@ -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 (file)
index 0000000..4005552
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 (file)
index 0000000..52aab15
--- /dev/null
@@ -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 (file)
index 0000000..8ab2b9c
--- /dev/null
@@ -0,0 +1,2 @@
+ONE_PASS_ONLY="true"
+. $cmd_dir/run_e2fsck