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^`ٻ;ZlȒ,fY^V1SYXֲ{!! @IJ* ) + $a!A}e%}?ens8 [i<>8pGN
a`?[}C]o}wþط>Gah?[}c]o}wþ ط>'ad?[}}.?[\o֧aߺ=طuþ5}ka?[a:}cطwþu ?[azCط^}5ط^}uط^}a?[']o=}G]o֧aߚvþ[|/1?دg`l/M/?p#p>/;pgc3wHy}/ǁ|;vں+]y]t#户D5mox&3#ft|wJ