Skip to contentSkip to conversation

18/19 e2fsprogs f_extents_shrd_blk test

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 18/19 e2fsprogs f_extents_shrd_blk test

Regression test for two extent files sharing the same blocks. Binary patch file.

This test is known not to work currently. The problem is that there is not enough space in the index to split the extent and clone all of the blocks. It is hoped that Ted's change of e2fsprogs to be extent based instead of block iterator based will allow this problem to be fixed.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

tests/f_extents_shrd_blk/expect.1 new file +50 -0
@@ -0,0 +1,50 @@
+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.
+
+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: 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762
+Multiply-claimed block(s) in inode 13: 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762
+Pass 1C: Scanning directories for inodes with multiply-claimed blocks
+Pass 1D: Reconciling multiply-claimed blocks
+(There are 2 inodes containing multiply-claimed blocks.)
+
+File /testfile (inode #12, mod time Fri Jan 19 09:50:52 2007) 
+  has 16 multiply-claimed block(s), shared with 1 file(s):
+	/file1 (inode #13, mod time Fri Jan 19 12:41:09 2007)
+Clone multiply-claimed blocks? yes
+
+Error while iterating over blocks in inode 12 (clone_file): No free space in extent map
+Couldn't clone file: No free space in extent map
+Delete file? yes
+
+File /file1 (inode #13, mod time Fri Jan 19 12:41:09 2007) 
+  has 16 multiply-claimed block(s), shared with 1 file(s):
+	/testfile (inode #12, mod time Fri Jan 19 09:50:52 2007)
+Multiply-claimed blocks already reassigned or cloned.
+
+Pass 2: Checking directory structure
+Entry 'testfile' in / (2) has deleted/unused inode 12.  Clear? yes
+
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+Block bitmap differences:  -(5121--5136)
+Fix? yes
+
+Free blocks count wrong for group #0 (6863, counted=6878).
+Fix? yes
+
+Free blocks count wrong (14447, counted=14462).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 12/4016 files (8.3% non-contiguous), 1570/16032 blocks
+Exit status is 1
tests/f_extents_shrd_blk/expect.2 new file +8 -0
@@ -0,0 +1,8 @@
+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 (0.0% non-contiguous), 1570/16032 blocks
+Exit status is 0
tests/f_extents_shrd_blk/name new file +1 -0
@@ -0,0 +1 @@
+shared extent blocks
tests/f_extents_shrd_blk/image.gz new file +1 -0
@@ -0,0 +1 @@
+����Eimage��	�es����<�`3�}��(��R�4JJm*mh-��v!�}��Mi����F�T��E�B��d��g��a��W?��������s�9��}�{�=�ܙk��՜�pԖðޤa�r�a8�鑉�;�s��_�<g��̙=2�<�x�ȼ�^v����[t�z����\�������ۭu�Ugo~���uK=�%'�/9b����۝w��_����l6:����X��ekFͬ�j�Z�V��j�Z�V��j�щ�6��[�I����e�3����m��kJ]���^����_olu��Ycث��&���7�oM��/��͘q�׮~�����ܹ׭;��	3�����}c��/|ōO,��MO-���'���
����
�XԜEͺ�--b�������j���ݒ��[�r��sf�v���3Y�Ȉc5n{<��Fo#��N^���X����?/j�7:�:q���s�|ᤚ\Sjj-QK�R5����7c_u�����U����-����ug0�]>�nrd�5u���7۬=����+���OՎ=�^g�C�7ޤ��y��n���������#�n���w�h�3�c���X��6�L�m����э���n����+�F��k�}6�}����u�0sXrd����g�g���2M�>i����~�p�3�z����o��bb����?`�l�����������?pkp��y�u{���#�̢�?k��]���:���7?�}�_��n�c��R5���S���~GΙ��[�~/�z�!�%'ϙ����ͤy��Z�2�
:���\h\��_z�+�2=���5����k�Z�V��k�Z�V��G�������`�<��6������_N�9��I���"s�Y|:,�&��菽��ҙK\�-äu����k���=&p�y�3v�q�E��V���HouFkRM�)5���%k��V�k�q��ر�?W�:,8�����?�}����1�.m?=2̚:�ڋ��m��Y���_��;~&��u�=�y�MZ���&��a��9�����&��ȼ׉���]����=ƥ��jϴ�n�
��~�9��m�����������3�͝5�����n�?z1~������r��܌7op��79�_͝{ݺ��0�NXm��76����W���B������]�z�p����p�E�YԬ�Ң����}~���{��F�Yk�ڵN�[���u��}ݡ6�;֝��u�ڰ�Zw����qݣ6�M략Yݫ�]��}꾵Eݯ�_[֬ڪ���6���]�փ���]=������j�zx=�Y��k�zt=�[�������zb=�v�'�S���zz�Z�����zf=��]ϩ=깵g�Uϫ��j�ڧ^X/��Kj�zi�W�����u@X�+��ze��^]�������uH������zcQo�7ב��zk���^�wֻ����zo�������uL[������p}��������xͩOԉuR}�>U����g�s��:�N�/ԩ��:��T_�������Z}��Q߬3���V}��S߭�����A�]?�Տ��I��έ��g��:�.�_�/�W�뺰~S�������C��.�K���S��.����K���VW�U���G]]��kj���W��I5������n�Z����Z���ekFͬ�j�Z�V��j�Z�V��Fz��no��	�o��اK���x��ne��o������u�X<��';��;�g�;��-����Oq�8�w��bw�?�O�����-ʂ�p���osf�Q[�z���͇�����u�7��_��#��Î���[n������$����?P�v|�"��!���'3/9b����۝w��_����l6:၎=��;fzBqk}�?�O�%�1:kN��&�Y��fͶ��j�Z�֭�j��]ݾ�P��Nu�KmXw���Fu�ڸ�Q�Ԧu�ڬ�U����>u�ڢ�W��-kVmU[�j�z`ͮm�A��ڮR��C�a�C=�Q��GՎ�S=�S�����k�zB=��T�ԓ�)��zZ=�v��j�zF=��UϮ����ڳ�������w�S/�Ջ�%�o������e��:����up��^U����k�u��:��P��aux����7՛��zK���Vo�w�;�]��zO���WG����:��������P}�>R��G�cuB}���'��:�>Y��O�g����|�\�����b�V_�/�W���j}��^ߨo�uf}��]ߩ�����uV��ή֏��uN��~Z��y���y�_�/����u]X�������uQ���X�%ui���\���uE���Z�+��{�����55��^�Gj�&��RSk�Z���i5���ejٚQ3k�Z�V�k�Z�V�Uk�Z�֘d���Z��a�Z�֭�j��]ݾ�P��Nu�KmXw���Fu�ڸ�Q�Ԧu�ڬ�U����>u�ڢ�W��-kVmU[�j�z`ͮm�A��ڮR��C�a�C=�Q��GՎ�S=�S�����k�zB=��T�ԓ�)��zZ=�v��j�zF=��UϮ����ڳ�������w�S/�Ջ�%�o������e��:����up��^U����k�u��:��P��aux����7՛��zK���Vo�w�;�]��zO���WG����:��������P}�>R��G�cuB}���'��:�>Y��O�g����|�\�����b�V_�/�W���j}��^ߨo�uf}��]ߩ�����uV��ή֏��uN��~Z��y���y�_�/����u]X�������uQ���X�%ui���\���uE���Z�+��{�����55����0R�5�&ה�ZKԒ�TM��t-S�֌�Y���B�X+�ʵJ�Z���F�9�����'�:�n�W�����u�ڠ�Xw�;�]júkݭ6����u�ڤ6�{�fu��wm^����u��mY�j�ںP��kvm[��v��ھZ�����zd=�v������zl=�_;����ڥ�\O������k�V��3���zv=����֞�W=��_/��k�za��^\/�}륵_�_/���u`T������zu��^[����!��:����uD���\G�[���z{���Y�w�{���:��_G�1ulW�և����:�>Z���5�>Q'�I���T}�>S�������:��P����R}��R��W�k���F}�Ψ3�[���N}��W߯��uv��~T?�s�'��:�Ϋ�������~Q��_կ���M��~W�����Ǻ�.�K�O�纬.�+�/���[]YW���uu�����5L���I5����Z����jZM��k�Z�f��Z���b��i�.�9�4>�5efty��ðC�c�V�]���4�s|�Ī�����^����{��۬6'��Oj|���v��w��ok����5����!��O_s��:|x���k�5���_���;u�fp�m�ڹ��k�N'5[�2u��*��졃��w�a�	��8�1�!�١�=���P�^�X4O�0>����m�)��~�$�/y�|o ���׵Z)���r`[)���a��.�_�wC��;��X�D�kW��n��ˍ���
ǜ���x��׿~��թ�����ͱ�_�=�o}��=��������ܜ�������=_t�{��]1�����1�1c1�1{b&b��<�P̾�ޫ��AqW���������c�WC�}?��1�1�'�w���ss�j����;y��ˏ��f���[�yӏ�ݏ��-\��\������	��u����]n���j�o'��x~>�Gb^x�zޘ������<��́�Z�z�l���T)��w�K��~��R�ٯ?V�Bw�㥴�?;X�b��'JY�=T�r��'cO�?<]J;��`)���ѵ��[������C��2��\�l�|t#�J�|��������Lt+�L�b������������K���ft'���Z���z���c�ٍ��Kѳ��э�����f�[�ٟD��׊^�>4��~#z9�J�Z�Zt;��b�٧�k۪� ���}8{lg�){.z��>��]=�]�+��]��})�����]��R�k���W�ײף��G⡓}6jU���ݱ����V�l�zt#��h�?�|t3{%z!{z,��>�ؽn�R���������vw͞��|tm��/��������{������ �	6�xu����
\ No newline at end of file