4/19 e2fsprogs f_extents_ee_block test
PATCH 1/1 4/19 e2fsprogs f_extents_ee_block test
Regression test for a bad ee_block 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_ee_block/expect.1 new file +95 -0
@@ -0,0 +1,95 @@ +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 has corrupt extent at block 16 (logical 7311) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 32 (logical 7451) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 48 (logical 7595) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 64 (logical 7748) length 15 +Clear? yes + +Inode 12 has corrupt extent at block 79 (logical 7903) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 95 (logical 8067) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 111 (logical 8498) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 127 (logical 8682) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 143 (logical 8878) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 159 (logical 9090) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 175 (logical 9322) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 191 (logical 9574) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 207 (logical 9858) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 223 (logical 10178) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 239 (logical 10558) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 255 (logical 11026) length 16 +Clear? yes + +Inode 12 has corrupt extent at block 271 (logical 11662) length 16 +Clear? yes + +Too many illegal blocks in inode 12. +Clear inode? yes + +Restarting e2fsck from the beginning... +Pass 1: Checking inodes, blocks, and sizes +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: -(1335--1350) -(1387--1402) -(1439--1454) -(1491--1506) -(1543--1558) -(1595--1610) -(1647--1662) -(1699--1714) -(1751--1766) -(1803--1818) -(1855--1870) -(1907--1922) -(1959--1974) -(2011--2026) -(2063--2078) -(2119--2134) -(2175--2190) -(2231--2246) -(2287--2302) -(2343--2358) -(2399--2414) -(2455--2470) -(2511--2526) -(2567--2582) -(2623--2638) -(2679--2694) -(2739--2754) -(2799--2814) -(2859--2874) -(2919--2934) -(2979--2994) -(3039--3054) -(3099--3114) -(3159--3174) -(3219--3234) -(3283--3298) -(3347--3362) -(3411--3426) -(3475--3490) -(3539--3554) -(3603--3618) -(3667--3682) -(3735--3750) -(3803--3818) -(3871--3886) -(3939--3954) -(4007--4022) -(4075--4090) -(4147--4162) -(4219--4234) -(4291--4306) -(4363--4378) -(4435--4450) -(4511--4526) -(4587--4602) -(4663--4678) -(4739--4754) -(4819--4834) -(4899--4914) -(4979--4994) -(5059--5074) -(5143--5158) -(5227--5242) -(5311--5326) -(5399--5414) -(5487--5502) -(5575--5590) -(5667--5682) -(5759--5774) -(5855--5870) -(5951--5966) -(6051--6066) -(6151--6166) -(6255--6270) -(6359--6374) -(6467--6482) -(6579--6594) -(6691--6706) -(6807--6822) -(6927--6942) -(7051--7066) -(7179--7194) -(7311--7326) -(7451--7466) -(7595--7610) -(7747--7762) -(7903--7918) -(8067--8082) -(8498--8513) -(8682--8697) -(8878--8893) -(9090--9105) -(9322--9337) -(9574--9589) -(9858--9873) -(10178--10193) -(10558--10573) -(11026--11041) -(11662--11677) -(12766--12781) +Fix? yes + +Free blocks count wrong for group #0 (5486, counted=6894). +Fix? yes + +Free blocks count wrong for group #1 (7392, counted=7584). +Fix? yes + +Free blocks count wrong (12878, counted=14478). +Fix? yes + +Inode bitmap differences: -12 +Fix? yes + +Free inodes count wrong for group #0 (1996, counted=1997). +Fix? yes + +Free inodes count wrong (4004, counted=4005). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 11/4016 files (0.0% non-contiguous), 1554/16032 blocks +Exit status is 1
tests/f_extents_ee_block/expect.2 new file +9 -0
@@ -0,0 +1,9 @@ +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: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 11/4016 files (0.0% non-contiguous), 1554/16032 blocks +Exit status is 1
tests/f_extents_ee_block/name new file +1 -0
@@ -0,0 +1 @@ +corrupt ee_block in block 7747
tests/f_extents_ee_block/image.gz new file +2 -0
@@ -0,0 +1,2 @@ +�:^�Eimage ���U����'