10/19 e2fsprogs f_extents_eh_max test
PATCH 1/1 10/19 e2fsprogs f_extents_eh_max test
Regression test for a bad eh_max field in an extent file. Binary patch file.
Signed-off-by Andreas Dilger <[email protected]>
Signed-off-by Girish Shilamkar <[email protected]>
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
tests/f_extents_eh_max/expect.1 new file +38 -0
@@ -0,0 +1,38 @@ +Pass 1: Checking inodes, blocks, and sizes +Inode 12 has EXTENT_FL set, but is not in extents format +Fix? yes + +Inode 12 has illegal block(s). Clear? yes + +Illegal block #0 (127754) in inode 12. CLEARED. +Inode 12, i_blocks is 3200, should be 8. Fix? yes + + +Running additional passes to resolve blocks claimed by more than one inode... +Pass 1B: Rescanning for multiply-claimed blocks +Multiply-claimed block(s) in inode 12: 1600 1600 +Pass 1C: Scanning directories for inodes with multiply-claimed blocks +Pass 1D: Reconciling multiply-claimed blocks +(There are 1 inodes containing multiply-claimed blocks.) + +File /testfile (inode #12, mod time Thu Jan 18 11:32:21 2007) + has 2 multiply-claimed block(s), shared with 0 file(s): +Clone multiply-claimed blocks? yes + +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +Block bitmap differences: -(1538--1599) -(1601--1619) -(1621--3136) +Fix? yes + +Free blocks count wrong for group #0 (5294, counted=6890). +Fix? yes + +Free blocks count wrong (12878, counted=14474). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 12/4016 files (8.3% non-contiguous), 1558/16032 blocks +Exit status is 1
tests/f_extents_eh_max/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: 12/4016 files (8.3% non-contiguous), 1558/16032 blocks +Exit status is 0
tests/f_extents_eh_max/name new file +1 -0
@@ -0,0 +1 @@ +corrupt eh_max
tests/f_extents_eh_max/image.gz new file +3 -0
@@ -0,0 +1,3 @@ +��[�E image �� �m���s�}����S�2&%R2D�DeHi�(C%i0��� (�P��$M�PhP�D����7����kU�U��Y�{�9w��>������{��9չ������Zc08��C3��̴�?\��9_UC�[�54u�+�=��Ω�θ��5��Ԇ�?�=��{�^[N�`�#����;��5�n0�0���u��O�d�C��l�O_��ᙞ������䚯�j�Z��Ej�Z��%�g~��fѳ���~꜎���z��_/_��5�N^jt/ ��x�?����?<��� ���ٽ���y��f������!�s���7 ��{���-<���C���M9p���F������N^���x(���V����`�����s�|�H���5��ׄ��&��5��W�:����ʿ�� �L���M0��6����M[:z94��=�������"