9/19 e2fsprogs f_extents_eh_magic test
PATCH 1/1 9/19 e2fsprogs f_extents_eh_magic test
Regression test for a bad eh_magic 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_magic/expect.1 new file +39 -0
@@ -0,0 +1,39 @@ +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 (130826) 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: 4 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 10:46:32 2007) + has 3 multiply-claimed block(s), shared with 1 file(s): + <filesystem metadata> +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: -(1302--1599) -(1601--2898) +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_magic/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_magic/name new file +1 -0
@@ -0,0 +1 @@ +corrupt eh_magic
tests/f_extents_eh_magic/image.gz new file +4 -0
@@ -0,0 +1,4 @@ +�Q�Eimage �� ��c���}ι�{/��RhRJ(2sM��BsIR�2�K���f)�$c*�J��� + J��q��\���Z�������?{�߳�z�~�����ڃ�huҔ���5�%G�MV�����,1���6=q�yjh0m�ٍC�,7�ۃM��g�97�f֘Zg��Z|���:j�N����'���%��M���ԅvs���u� [��UG��kEG�c�n�WSj�Z���5���k�Z���b�s?��6(VFf�ӱu´��������[G/>: �w�����o�O1���՜�0���9=�����@Fw������Xd�\�#�̽�=ot��74�<�ɫ������g������=��|��/�15�����P��ĚT�����{^�� ���3'�{s��C���Y{ܬ{G/������u�� ���pM /��ׇ���Ƥ�OL�a��wYfv�q����KG&���λl���x���m����-#��?�(1�S �?`��?`��?`��?`��?`�g���Q�� c�\��f���j������Sn=c��+�t��e��������;��ٍ�}9g���.��,3R=���p��G�ã�������i��� Y��kl��e�͘�#��gF?��oz��s�sȳ�\� u�3\#5��ָ_j��X�j�qF䘽GNL�q�4�3G�pe0�[o�g�^{ܬ{G/������u��������������+�N�� �%f5�石} � 6�q��ƍn��\?{��e�;Ef�~_����?�yÇĄ��O]h�1���^�߰�!�_u��Vtt=���|5��j��Z�j�Z��Ekz-v�7L�۠xXz���q��Y����F�Z>e�h����7�;�����y����������Ї�L+�?;�5���9�� �`� �������z|-QK�R��zb=��\O�����Z��^Ϩe뙵\-_+Գ�ٵb�Tϩ�k�Z�V��k�Z�֪�kF�S��z�~mPϭ �y�Qm\ϯ�&��ڴ^T/��j�ڢ^R/�������zU��^S[�kk�z]����mj�ڮ�P���M�C��v���-��z[�\�Ԯ�[�^o�w��g�U�wջkf�]��{j�گ�������u@}������`R��aux}�>\GԑuT}�>Z���'���:�>]����1ul}��������b}��\'ԉuR}�N���)���z}��Y��iuz}�ΨoיuV�]�Թu^}�ί�����uA]X��uq]R?��O���i��~^��/����u]^WԕuU]]��o����}���������s]_7ԍ�����Z7�-uk��n��뎺��^����u�������15����?�M�yjbM��5o�WSj�Z���5���k�Z��;� �c��ǎ���\���c������D-YK����zr=������j�zz=���g�r�|�PϪg�R=�V�Uj�Z�V�5j�Z�֮�N�[����A=�6���F�q=�^P��k�zQ��6��k�zI��^V/�W�+�U��zMmY����u��ں��mk�zCm_o�7���ڱv���[�m�s�R��n�{���Q{Ԟ�W���Uﮙ�w�S�}k�ڿ�[�����:����uHZ������pQG�Q���h}�>^��O֧���t}�>[�Ա��:�>__������r�P'�I��:��Z��������f�Z�����:��]g�Yuv�S��y��:��[߫��ua]T?���uI��~\?�K����y]V��_֯��uy]QW�Uuu]S�������������?֟��u}�P7�_��k�\�ԭ����n�;���{�����5h_<T�5Rcjl���5�橉5�&5_M��k�Z��ִZ��Ejњ^��cF� �->2<�_KԒ�T=��XO�'�Sj�zj=�����3j�zf-W�� +��zv�X+�sj�Z�V��j�Z�֬�j�Q�Ժ�^�_�sk�z^mT����I��6�Ջk�ڼ����K�e��zE��^U���Ԗ��ڪ^W���k�ڶ��7����zS�Po�k�zK���V;�.�k�V�����G�Y{�;�]��Y{�>��ڷ������zP��:�>X�ԡuX^��udU���������d}���O�g�uL[�������:��X_�/� ub�T_���uJ}��^ߨo֩uZ�^ߪ3��uf�Ug�9un�Wߩ�����~]P�E���a]\�ԏ������~Z?���e���e��~]��ue]UW�5���m��~_�k��c���\�� uc��n����uK�Z�������?��g�]�1��P �H���5��ׄ��&֤�\��|5��j��Z�j�Z��Ekz-V��ǎ1� ��1���k�Z���'��I��zJ-]O���2��zF-[Ϭ�j�Z��UϮk�zN�\�Ԫ�Z�^kԚ�V�]3j�Z�֫�k�znmXϫ�j�z~��6�֦��zqmV����zi��^^��W֫����ڲ^[[�����umS��v��ھ�Xo��͵c�To����j�ڥv��j�z{����=k�zg���]3k�ڧ�S��~����W��u`T��:����C��:�����#���X}�>Q��O�����L}���c�su\}��P���K��:�N���+ur}�N�������:�N���[uF}�ά���:�έ��;u~}��W߯�º�~P?����Q��~R��O�g��~Q��_կ����꺦~S������um]W�?՟����n���M��n�[�ou[�^wԝ���G�U���k0v0���15�����P��ĚT�kޚ�����@-8֜ �;���Pp�sT+��I܁Abbaj"qn���10Z�D�V��htj2 +o[���"i=O�K�����k�} �{�FS:_Ii�?���.b���0���K���)M����}�ּ�ܾ���PԈ��������ճ����������_�o0��R�-���O��G�O��,���:�c�F�r4�G�h"�F��T4�D�Y����Pt����}:5g�K�����@t^�:�^����t���/8���r\ �G{p@ ���; �qw#^ ��