This is the regression test for large EAs. The test image contains a valid large EA, large EA without EXT4_EA_INODE_FL flag, an EA inode whose back-pointer(generation and mtime) does not match with the EA entry and an EA entry pointing to a inode which is not an EA inode. Signed-off-by: Andreas Dilger <adilger@xxxxxxx> Signed-off-by: Kalpak Shah <kalpak.shah@xxxxxxx> expect.1 | 27 +++++++++++++++++++++++++++ expect.2 | 7 +++++++ image.gz | 5 +++++ name | 1 + 4 files changed, 40 insertions(+) Thanks, Kalpak
Index: e2fsprogs-1.41.1/tests/f_large_eas/expect.1 =================================================================== --- /dev/null +++ e2fsprogs-1.41.1/tests/f_large_eas/expect.1 @@ -0,0 +1,27 @@ +Pass 1: Checking inodes, blocks, and sizes +Parent inode 12 has illegal EA entry. EA inode 79 does not have EXT4_EA_INODE_FL flag. Delete EA entry? +Fix? yes + +Illegal backpointer from EA inode 19 to parent inode 13. Delete EA inode? +Fix? yes + +Parent inode 14 has illegal EA entry. EA inode 20 does not have EXT4_EA_INODE_FL flag. Delete EA entry? +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 + +Unattached inode 17 +Connect to /lost+found? yes + +Unattached inode 18 +Connect to /lost+found? yes + +Pass 5: Checking group summary information + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 20/256 files (40.0% non-contiguous), 1368/8192 blocks +Exit status is 1 Index: e2fsprogs-1.41.1/tests/f_large_eas/expect.2 =================================================================== --- /dev/null +++ e2fsprogs-1.41.1/tests/f_large_eas/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 (40.0% non-contiguous), 1368/8192 blocks +Exit status is 0 Index: e2fsprogs-1.41.1/tests/f_large_eas/name =================================================================== --- /dev/null +++ e2fsprogs-1.41.1/tests/f_large_eas/name @@ -0,0 +1 @@ +large EAs --- /dev/null 2008-11-13 20:33:49.217779470 -0500 +++ e2fsprogs-1.41.1/tests/f_large_eas/image.gz 2008-11-14 10:54:23.000000000 -0500 @@ -0,0 +1,5 @@ +��Iimage ����r�ⵈ�xQ�b�eV�y����[(�d I)fe١i�����biaiw�tx$���s� ������7���5V-mZUWd^3���-�i)���k�RC�nu����<�utu��U]�4%�<��=������}b��aO��������������E�h�:<��LG����\:>��NLc��Z������EU��U� �5�Uߨ��������̟?hu?>