7/19 e2fsprogs f_extents_eh_depth test
PATCH 1/1 7/19 e2fsprogs f_extents_eh_depth test
Regression test for a bad eh_depth field in an extent file. Binary patch file.
This test still fails with the current extents patch. It takes 2 runs of e2fsck to correct the problem.
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_depth/expect.1 new file +49 -0
@@ -0,0 +1,49 @@ +Pass 1: Checking inodes, blocks, and sizes +Inode 12 has high 16 bits of extent/index block set +Clear? yes + +High 16 bits of extent/index block set +CLEARED. +High 16 bits of extent/index block set +CLEARED. +Inode 12, i_blocks is 3200, should be 2. 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 8: 512 +Multiply-claimed block(s) in inode 12: 512 +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 <The journal inode> (inode #8, mod time Thu Jan 18 12:14:31 2007) + has 1 multiply-claimed block(s), shared with 1 file(s): + /testfile (inode #12, mod time Thu Jan 18 12:14:32 2007) +Clone multiply-claimed blocks? yes + +File /testfile (inode #12, mod time Thu Jan 18 12:14:32 2007) + has 1 multiply-claimed block(s), shared with 1 file(s): + <The journal inode> (inode #8, mod time Thu Jan 18 12:14:31 2007) +Multiply-claimed blocks already reassigned or cloned. + +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +Block bitmap differences: -(7681--8192) -(8448--9535) +Fix? yes + +Free blocks count wrong for group #0 (6382, counted=6893). +Fix? yes + +Free blocks count wrong for group #1 (6496, counted=7584). +Fix? yes + +Free blocks count wrong (12878, counted=14477). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 12/4016 files (0.0% non-contiguous), 1555/16032 blocks +Exit status is 1
tests/f_extents_eh_depth/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), 1555/16032 blocks +Exit status is 0
tests/f_extents_eh_depth/name new file +1 -0
@@ -0,0 +1 @@ +corrupt eh_depth
tests/f_extents_eh_depth/image.gz new file +2 -0
@@ -0,0 +1,2 @@ +��f�Eimage �� ��s���s���0v3���,) ���PҪB)Q�3Z�N�T�%K*iӞB)ʖh*����f�5��y{z�y��y��=���>g�����9����s�'l8,72l��`pb�C�0}vW�N���MN�����mo�w�SZlu뽫���I5����s~��jg�p�[��>��}��#���߄y���R� �o}䬻�`�/8ox�:�8�oy��R�B�p-R��b�x-QSkZ-9<�-� �C�Ȝq:�n�z��´��?��֎�Fg�?�=��x��_5~�x���j��߹�;��>