1mke2fs -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384
2Creating filesystem with 16384 1k blocks and 4096 inodes
3Superblock backups stored on blocks:
4	1025, 3073, 5121, 7169, 9217
5
6Allocating group tables:      done
7Writing inode tables:      done
8Writing superblocks and filesystem accounting information:      done
9
10Pass 1: Checking inodes, blocks, and sizes
11Pass 2: Checking directory structure
12Pass 3: Checking directory connectivity
13Pass 4: Checking reference counts
14Pass 5: Checking group summary information
15test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
16Exit status is 0
17-----------------------------------------------
18
19debugfs -R ''set_inode_field <7> block[2] 42'' -w test.img
20Exit status is 0
21Resize inode not valid.  Recreate? yes
22
23Pass 1: Checking inodes, blocks, and sizes
24Pass 2: Checking directory structure
25Pass 3: Checking directory connectivity
26Pass 4: Checking reference counts
27Pass 5: Checking group summary information
28Free blocks count wrong for group #0 (717, counted=718).
29Fix? yes
30
31Free blocks count wrong (14276, counted=14277).
32Fix? yes
33
34
35test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
36test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
37Exit status is 1
38Pass 1: Checking inodes, blocks, and sizes
39Pass 2: Checking directory structure
40Pass 3: Checking directory connectivity
41Pass 4: Checking reference counts
42Pass 5: Checking group summary information
43test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
44Exit status is 0
45-----------------------------------------------
46
47debugfs -R ''clri <7>'' -w test.img
48Exit status is 0
49Resize inode not valid.  Recreate? yes
50
51Pass 1: Checking inodes, blocks, and sizes
52Pass 2: Checking directory structure
53Pass 3: Checking directory connectivity
54Pass 4: Checking reference counts
55Pass 5: Checking group summary information
56Free blocks count wrong for group #0 (717, counted=718).
57Fix? yes
58
59Free blocks count wrong (14276, counted=14277).
60Fix? yes
61
62
63test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
64test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
65Exit status is 1
66Pass 1: Checking inodes, blocks, and sizes
67Pass 2: Checking directory structure
68Pass 3: Checking directory connectivity
69Pass 4: Checking reference counts
70Pass 5: Checking group summary information
71test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
72Exit status is 0
73-----------------------------------------------
74
75debugfs -R ''set_inode_field <7> bmap[524] 57'' -w test.img
76Exit status is 0
77Resize inode not valid.  Recreate? yes
78
79Pass 1: Checking inodes, blocks, and sizes
80Pass 2: Checking directory structure
81Pass 3: Checking directory connectivity
82Pass 4: Checking reference counts
83Pass 5: Checking group summary information
84Free blocks count wrong for group #0 (717, counted=718).
85Fix? yes
86
87Free blocks count wrong (14276, counted=14277).
88Fix? yes
89
90
91test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
92test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
93Exit status is 1
94Pass 1: Checking inodes, blocks, and sizes
95Pass 2: Checking directory structure
96Pass 3: Checking directory connectivity
97Pass 4: Checking reference counts
98Pass 5: Checking group summary information
99test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
100Exit status is 0
101-----------------------------------------------
102
103debugfs -R ''set_super_value reserved_gdt_blocks 15679'' -w test.img
104Exit status is 0
105ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap
106../e2fsck/e2fsck: Group descriptors look bad... trying backup blocks...
107Pass 1: Checking inodes, blocks, and sizes
108Pass 2: Checking directory structure
109Pass 3: Checking directory connectivity
110Pass 4: Checking reference counts
111Pass 5: Checking group summary information
112
113test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
114test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
115Exit status is 1
116-----------------------------------------------
117
118debugfs -R ''set_super_value reserved_gdt_blocks 32'' -w test.img
119Exit status is 0
120Pass 1: Checking inodes, blocks, and sizes
121Pass 2: Checking directory structure
122Pass 3: Checking directory connectivity
123Pass 4: Checking reference counts
124Pass 5: Checking group summary information
125Block bitmap differences:  -(35--258) -(1059--1282) -(3107--3330) -(5155--5378) -(7203--7426) -(9251--9474)
126Fix? yes
127
128Free blocks count wrong for group #0 (718, counted=942).
129Fix? yes
130
131Free blocks count wrong for group #1 (732, counted=956).
132Fix? yes
133
134Free blocks count wrong for group #3 (732, counted=956).
135Fix? yes
136
137Free blocks count wrong for group #5 (732, counted=956).
138Fix? yes
139
140Free blocks count wrong for group #7 (732, counted=956).
141Fix? yes
142
143Free blocks count wrong for group #9 (732, counted=956).
144Fix? yes
145
146Free blocks count wrong (14277, counted=15621).
147Fix? yes
148
149
150test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
151test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks
152Exit status is 1
153Pass 1: Checking inodes, blocks, and sizes
154Pass 2: Checking directory structure
155Pass 3: Checking directory connectivity
156Pass 4: Checking reference counts
157Pass 5: Checking group summary information
158test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks
159Exit status is 0
160