Skip to contentSkip to conversation

7/19 e2fsprogs f_extents_eh_depth test

PATCH New Andreas Dilger 1 participant 1 message Mar 20, 2007

lore
Share & tools
lore
#0 lore raw

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.

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��߹�;��>��S�4���~�"C�z��̜u�y�������yN^���x0��?k>��7<�:����9z�p����W�kB�WkRM���}��
N}��74�9��3��n��7���-3�r��	����}\|�q�z��W�Ƀ���������-L�����û���^���޻�4z�`p�Ȅ��v�s�]v�mg�<�M�������<L������������������C�E��}3���W��ެ��jg�p�[��>��}��#��Yx���1<�?�	�iܜ˹돝}94w��ٗ�G/'zv���{�<|:<܍���n�o�z���$#ӻ��֎Ӯo��c�6�ǚ��);������L�g��q�k����W�kB�WkRM�Έ�8k����������`���&ܻ4��{����;"Zf�������q�Y�-�������	��iG�������	�����}
�l{�н��;^��u0��D��w�̜�_���?�y��	�\���L���Ywt��^p��<t�q���5���j�Z���j�Z��ִZ�~;LzC����߿ǭ͞(Ny��odp����4s�}ۍ������y6^�������?x�zh�������~^i��R�#k���~�xXrh0X�QK�2�lM��j�Z�V�����Z�V�Gת�Z=�V�5j�zl�Uk����N�[�����ڠ�XO�
��5�6���)��ڤ6���i��ڼ�Q[Ԗ�Um]Ϭg�6�mmWϮ�����ڡ�Wϯ��E��ڱ^R/���N�s�R/�WԮ��zU�V���k�zM��^W{�^�w���Po�7՛�-��ڧ���jfͪ��m��zG����]uP\�ԡuX^GԑuT���S������:�����:�>T'ԇ�#��:�N���:�N���:�Ϊ���uN�[������D}�>Uԧ���L}�>W��/�E���R}��R_�����uq}��U�ԥuY}��S��w�{uE}�~P?�+몺�~T?�k�ں����'uc��n���g���E��n�_խu[�^����o뎺�~Ww�����C���T���_�9�����15�����&�|5�&�䚿�)�`-T�"�h-V��5�����RÃ�#F���x.������k�Z���r�|�P+�J��zT�\�ԣk�Z�S���f=�֪��q��Z�֭�j�zBmPO�'Ն��Q����zjmR��f��zzm^Ϩ-j�ڪ��gֳj�ڶ��g�sj�zn�Pϫ�����zq�X/����j�ڹv���+j�ze��v�W��G��^[��=k�ڻ^_o�7֛����zk�S��~5�f����z{���Yԁ��:��C��:��#��:��]������utS���u\_������h�X'��uJ�Z���uF�Yg����:�έ���u~}�>Y����ua}�>[������b}��\_�����������YߪK�Һ��]ߩ�������_?�֕uU]]?��5um]W��
����~Z7�����y��~Y�ԯ�ֺ�n�_�o�uG�Y������}���X�?�_�uO
��p�Ԙ[�j|M��jbM��5-PSj�Z��Ej�Z��%jjM�%k���@K��Բ5����k�Z�V�G֣j�Z�]��j��Z�֨5뱵V�]����:�n�W��j�zb=�6�'׌ڨ6���Sk�ڴ6����k�zFmQ[�V�u=��U�Զ�]=��S��sk�z^=�^P/�Ջk�zI��^V;�εK��^Q��+�U�[��v�=�5��z]�Y{����zC���To���[k�ڷ���5���������:��w�AupR��auxQG�Q��zO���Wﯣ�:�>P�����P�P���G��:�N�S��:�N�3��:�>Vg�9un�W������T]P���3���\}��P��K���J}��V_�o�����V]R��e���N]^߭�����A��������Q����k뺺�n��ԍ�Ӻ�n������˺�~U��mu{��~S��;���]�Uw������S���R�{j0f0���15�����P��ĚT�k�Z��Ԃ�P-\�Ԣ�X-^K�ԚVK�R��1�?���3,[�k�Z�V�k�zd=�V�U�ѵj�V���k�Z�[k����z|�S��z�~=�6�'֓j�zrͨ�j�zJ=�6�Mk�zZ=�6�g��emU[�3�Y�Mm[�ճ�9�}=�v�������zQ��v���K�e�S�\�����k��^U�իk�ڣ^S���՞�W�]��7��M��zK����}k��Y�j�z[���Q���zWT�!uhV��udU���{�}��:���c���:����	���H}�N����:�N����:�ά��cuv�S��y��:�>Q��O��麰>S������uQ}��T_���W�k���F]\߬o�%ui]V߮������^]Q߯��ʺ���Տ뚺������I�X?�����Y��~Q��[�Wuk�V�ׯ�7�ۺ����]uw���P�?՟�/�׺�c����Sck\��	5_M�I5��jJ-X��c�i��Nݫ$�?�&aه}��4�45�C��mdcC��DA�$�CC[���ZOZ M�����}_����GSj����K�x-����o�vz(t��͔��K����Ծ���p��`�f��ז/�NV�ŋ����F��W��zx?WN�����Q�qۺɺ���b�#�hT�Ƣ�h"����T4�D�Q%����?=%�}{����]!�~=��`����_���zÞ_
+~d�7����������@H�Ww��kM��
\ No newline at end of file