From: Andreas Dilger Date: Fri, 13 Apr 2012 08:14:16 +0000 (-0600) Subject: tests: verify large xattr inode support X-Git-Tag: v1.47.0-wc1~16 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=374293d8ef8aac84753ad82a8a313309972cfd46;p=tools%2Fe2fsprogs.git tests: verify large xattr inode support Verify that inodes with large EAs in a secondary inode are working: * EA inode needs to have EA_INODE_FL set * EA inode should reference parent inode number+generation Signed-off-by: Kalpak Shah Signed-off-by: Andreas Dilger --- diff --git a/tests/f_large_ea/expect.1 b/tests/f_large_ea/expect.1 new file mode 100644 index 0000000..47b6c2b --- /dev/null +++ b/tests/f_large_ea/expect.1 @@ -0,0 +1,48 @@ +Pass 1: Checking inodes, blocks, and sizes +Inode 12 has illegal extended attribute value inode 79. +Clear? yes + +Inode 12, i_blocks is 2, should be 0. Fix? yes + +Extended attribute in inode 13 has a hash (2037685388) which is invalid +Clear? yes + +Inode 13, i_blocks is 2, should be 0. Fix? yes + +Inode 14 has illegal extended attribute value inode 20. +Clear? yes + +Inode 14, i_blocks is 2, should be 0. Fix? yes + +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Unattached inode 16 +Connect to /lost+found? yes + +Inode 16 ref count is 2, should be 1. Fix? yes + +Unattached inode 17 +Connect to /lost+found? yes + +Inode 17 ref count is 2, should be 1. Fix? yes + +Unattached inode 18 +Connect to /lost+found? yes + +Inode 18 ref count is 2, should be 1. Fix? yes + +Pass 5: Checking group summary information +Block bitmap differences: -1160 -1210 -1260 +Fix? yes + +Free blocks count wrong for group #0 (6821, counted=6824). +Fix? yes + +Free blocks count wrong (6821, counted=6824). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 20/256 files (20.0% non-contiguous), 1368/8192 blocks +Exit status is 1 diff --git a/tests/f_large_ea/expect.2 b/tests/f_large_ea/expect.2 new file mode 100644 index 0000000..766411b --- /dev/null +++ b/tests/f_large_ea/expect.2 @@ -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: 20/256 files (20.0% non-contiguous), 1368/8192 blocks +Exit status is 0 diff --git a/tests/f_large_ea/image.gz b/tests/f_large_ea/image.gz new file mode 100644 index 0000000..0162113 Binary files /dev/null and b/tests/f_large_ea/image.gz differ diff --git a/tests/f_large_ea/name b/tests/f_large_ea/name new file mode 100644 index 0000000..9d45f60 --- /dev/null +++ b/tests/f_large_ea/name @@ -0,0 +1 @@ +large EAs