regression test for large EAs
PATCH 2/2 regression test for large EAs
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 <[email protected]>
Signed-off-by Kalpak Shah <[email protected]>
expect.1 | 27 +++++++++++++++++++++++++++ expect.2 | 7 +++++++ image.gz | 5 +++++ name | 1 + 4 files changed, 40 insertions(+)
Thanks,
Kalpak
tests/f_large_eas/expect.1 new file +27 -0
@@ -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
tests/f_large_eas/expect.2 new file +7 -0
@@ -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
tests/f_large_eas/name new file +1 -0
@@ -0,0 +1 @@ +large EAs
tests/f_large_eas/image.gz new file +5 -0
@@ -0,0 +1,5 @@ +��Iimage �� ��u�����.r�ⵈ�xQ�b�eV�y�}ߊ�b�[(�d I)fe١i�����biaiw�]tx$��Q��߳�].s� ������o�����7��c���5V-mZUWd^3���O-�i)���k���RC�nu�C��˝<�utu��U]�4%�<�����ޗ=�������C����}b�\�aO�L�E>����[������^������E�h�z�yX:<��LG���1��t\:>��NLc��Z������i�EU���V U� �5��Uߨ�����:������̟?hu?>