Test case for bad inode detection, and fixes for old test cases.
Test case for bad inode detection, and fixes for old test cases. Index: e2fsprogs-1.39/tests/f_ibadness/name =================================================================== --- /dev/null +++ e2fsprogs-1.39/tests/f_ibadness/name @@ -0,0 +1 @@ +Inode with badness = 8 Index: e2fsprogs-1.39/tests/f_ibadness/expect.1 =================================================================== --- /dev/null +++ e2fsprogs-1.39/tests/f_ibadness/expect.1 @@ -0,0 +1,40 @@ +Pass 1: Checking inodes, blocks, and sizes +Inode 13 is in use, but has dtime set. Fix? yes + +Inode 13 has illegal block(s). Clear? yes + +Illegal block #0 (4294967295) in inode 13. CLEARED. +Illegal block #1 (4294967295) in inode 13. CLEARED. +Inode 13, i_blocks is 3453453, should be 140. Fix? yes + +Pass 2: Checking directory structure +i_file_acl for inode 13 (/testfile) is 345, should be zero. +Clear? yes + +i_faddr for inode 13 (/testfile) is 34534, should be zero. +Clear? yes + +Inode 13 is badly corrupt (badness value = 8). Clear? yes + +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +Block bitmap differences: -(1368--1369) +Fix? yes + +Free blocks count wrong for group #0 (6823, counted=6825). +Fix? yes + +Free blocks count wrong (14691, counted=14693). +Fix? yes + +Free inodes count wrong for group #0 (2039, counted=2037). +Fix? yes + +Free inodes count wrong (4087, counted=4085). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 11/4096 files (0.0% non-contiguous), 1691/16384 blocks +Exit status is 1 Index: e2fsprogs-1.39/tests/f_ibadness/expect.2 =================================================================== --- /dev/null +++ e2fsprogs-1.39/tests/f_ibadness/expect.2 @@ -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: 11/4096 files (0.0% non-contiguous), 1691/16384 blocks +Exit status is 0 *** /dev/null 2007-06-21 14:46:07.320441196 +0530 --- e2fsprogs-1.39/tests/f_ibadness/image.gz 2007-06-21 15:42:01.000000000 +0530 *************** *** 0 **** --- 1,27 ---- + �SKzFimage ��]W^`ٻ;��l��,�fY^��V1���S��Y��Xֲ���!! ��@I�J*��� + $a!�A������e�n���8 ��<���G��<p`���=p����_ʓV��x(������/]��a�6��?����͟����?�ǿ�D\�x:�o�xs�"�G<�w�;�a�{,���������ǵ:�O|r��^n��'^ֱ`�z���W��a�?���}땮ط&\��ot�ط>��a�`���}���o}���w�ط>��a�h���}���o}����w�ط>��a�d���}��}�?�\��o���aߺ��ط�þ5�}k�����a��}��ط�þu�����a���ط^�}�ط^�}�ط^�}�?�]��o=�}����o���aߚv��/��1�د���`���/M��/?p�p��>�/;pgc�3wH�y���/�����v����+�]���#��D�5�o�x&�f�w��<�fb��x<≈s���#.E<�����r�x�8���?p�_y�q�w̼"�9t����[㫷E�=♈ό���W���~�