1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
|
tst_bitmaps 1.0. Type '?' for a list of commands.
tst_bitmaps: setb 12 0
Marking blocks 12 to 11
tst_bitmaps: setb 12
Setting block 12, was clear before
tst_bitmaps: setb 12
Setting block 12, was set before
tst_bitmaps: clearb 12
Clearing block 12, was set before
tst_bitmaps: clearb 12
Clearing block 12, was clear before
tst_bitmaps: setb 12
Setting block 12, was clear before
tst_bitmaps: setb 14
Setting block 14, was clear before
tst_bitmaps: setb 16
Setting block 16, was clear before
tst_bitmaps: testb 13
Block 13 is clear
tst_bitmaps: testb 15
Block 15 is clear
tst_bitmaps: testb 12
Block 12 is set
tst_bitmaps: testb 14
Block 14 is set
tst_bitmaps: setb 13
Setting block 13, was clear before
tst_bitmaps: setb 15
Setting block 15, was clear before
tst_bitmaps: testb 12
Block 12 is set
tst_bitmaps: testb 11
Block 11 is clear
tst_bitmaps: testb 15
Block 15 is set
tst_bitmaps: testb 16
Block 16 is set
tst_bitmaps: dump_bb
block bitmap: 00f80000000000000000000000000000
bits set: 5
tst_bitmaps: ffzb 11 16
First unmarked block is 11
tst_bitmaps: ffzb 12 16
ext2fs_find_first_zero_block_bitmap2() returned No such file or directory
tst_bitmaps: ffzb 12 20
First unmarked block is 17
tst_bitmaps: ffsb 0 127
ext2fs_find_first_set_block_bitmap2() returned Invalid argument
tst_bitmaps: ffsb 1 128
ext2fs_find_first_set_block_bitmap2() returned Invalid argument
tst_bitmaps: ffsb 1 127
First marked block is 12
tst_bitmaps: ffsb 1 10
ext2fs_find_first_set_block_bitmap2() returned No such file or directory
tst_bitmaps: ffsb 1 11
ext2fs_find_first_set_block_bitmap2() returned No such file or directory
tst_bitmaps: ffsb 12 12
First marked block is 12
tst_bitmaps: ffsb 13 12
ext2fs_find_first_set_block_bitmap2() returned Invalid argument
tst_bitmaps: ffsb 12 15
First marked block is 12
tst_bitmaps: clearb 13
Clearing block 13, was set before
tst_bitmaps: ffzb 12 20
First unmarked block is 13
tst_bitmaps: ffsb 13 18
First marked block is 14
tst_bitmaps: setb 13
Setting block 13, was clear before
tst_bitmaps: clearb 12 7
Clearing blocks 12 to 18
tst_bitmaps: testb 12 7
Blocks 12 to 18 are all clear.
tst_bitmaps: setb 15
Setting block 15, was clear before
tst_bitmaps: testb 12 7
Blocks 12 to 18 are NOT all clear.
tst_bitmaps: clearb 15
Clearing block 15, was set before
tst_bitmaps: testb 12 7
Blocks 12 to 18 are all clear.
tst_bitmaps: setb 12 0
Marking blocks 12 to 11
tst_bitmaps: setb 12 7
Marking blocks 12 to 18
tst_bitmaps: dump_bb
block bitmap: 00f80300000000000000000000000000
bits set: 7
tst_bitmaps: seti 2
Setting inode 2, was clear before
tst_bitmaps: seti 5
Setting inode 5, was clear before
tst_bitmaps: seti 4
Setting inode 4, was clear before
tst_bitmaps: seti 3
Setting inode 3, was clear before
tst_bitmaps: seti 4
Setting inode 4, was set before
tst_bitmaps: seti 5
Setting inode 5, was set before
tst_bitmaps: testi 6
Inode 6 is clear
tst_bitmaps: testi 1
Inode 1 is clear
tst_bitmaps: dump_ib
inode bitmap: 1e000000
bits set: 4
tst_bitmaps: ffzi 1 6
First unmarked inode is 1
tst_bitmaps: ffzi 2 5
ext2fs_find_first_zero_inode_bitmap2() returned No such file or directory
tst_bitmaps: ffzi 2 6
First unmarked inode is 6
tst_bitmaps: ffsi 0 31
ext2fs_find_first_set_inode_bitmap2() returned Invalid argument
tst_bitmaps: ffsi 1 33
ext2fs_find_first_set_inode_bitmap2() returned Invalid argument
tst_bitmaps: ffsi 1 32
First marked inode is 2
tst_bitmaps: ffsi 2 32
First marked inode is 2
tst_bitmaps: ffsi 6 32
ext2fs_find_first_set_inode_bitmap2() returned No such file or directory
tst_bitmaps: cleari 4
Clearing inode 4, was set before
tst_bitmaps: ffzi 2 6
First unmarked inode is 4
tst_bitmaps: ffsi 4 32
First marked inode is 5
tst_bitmaps: ffsi 5 32
First marked inode is 5
tst_bitmaps: zeroi
Clearing inode bitmap.
tst_bitmaps: testi 5
Inode 5 is clear
tst_bitmaps: seti 5
Setting inode 5, was clear before
tst_bitmaps: seti 5
Setting inode 5, was set before
tst_bitmaps: cleari 5
Clearing inode 5, was set before
tst_bitmaps: cleari 5
Clearing inode 5, was clear before
tst_bitmaps: testi 17
Inode 17 is clear
tst_bitmaps: testi 6
Inode 6 is clear
tst_bitmaps: testi 4
Inode 4 is clear
tst_bitmaps: clearb 7 12
Clearing blocks 7 to 18
tst_bitmaps: dump_bb
block bitmap: 00000000000000000000000000000000
bits set: 0
tst_bitmaps: setb 1
Setting block 1, was clear before
tst_bitmaps: dump_bb
block bitmap: 01000000000000000000000000000000
bits set: 1
tst_bitmaps: setb 2
Setting block 2, was clear before
tst_bitmaps: dump_bb
block bitmap: 03000000000000000000000000000000
bits set: 2
tst_bitmaps: setb 3
Setting block 3, was clear before
tst_bitmaps: dump_bb
block bitmap: 07000000000000000000000000000000
bits set: 3
tst_bitmaps: setb 4
Setting block 4, was clear before
tst_bitmaps: dump_bb
block bitmap: 0f000000000000000000000000000000
bits set: 4
tst_bitmaps: setb 5
Setting block 5, was clear before
tst_bitmaps: dump_bb
block bitmap: 1f000000000000000000000000000000
bits set: 5
tst_bitmaps: setb 6
Setting block 6, was clear before
tst_bitmaps: dump_bb
block bitmap: 3f000000000000000000000000000000
bits set: 6
tst_bitmaps: setb 7
Setting block 7, was clear before
tst_bitmaps: dump_bb
block bitmap: 7f000000000000000000000000000000
bits set: 7
tst_bitmaps: setb 8
Setting block 8, was clear before
tst_bitmaps: dump_bb
block bitmap: ff000000000000000000000000000000
bits set: 8
tst_bitmaps: setb 10
Setting block 10, was clear before
tst_bitmaps: setb 12
Setting block 12, was clear before
tst_bitmaps: setb 14
Setting block 14, was clear before
tst_bitmaps: setb 17
Setting block 17, was clear before
tst_bitmaps: setb 19
Setting block 19, was clear before
tst_bitmaps: setb 24
Setting block 24, was clear before
tst_bitmaps: setb 26
Setting block 26, was clear before
tst_bitmaps: setb 27
Setting block 27, was clear before
tst_bitmaps: setb 30
Setting block 30, was clear before
tst_bitmaps: setb 31
Setting block 31, was clear before
tst_bitmaps: setb 32
Setting block 32, was clear before
tst_bitmaps: setb 35
Setting block 35, was clear before
tst_bitmaps: setb 39
Setting block 39, was clear before
tst_bitmaps: setb 40
Setting block 40, was clear before
tst_bitmaps: setb 44
Setting block 44, was clear before
tst_bitmaps: setb 46
Setting block 46, was clear before
tst_bitmaps: setb 47
Setting block 47, was clear before
tst_bitmaps: setb 49
Setting block 49, was clear before
tst_bitmaps: setb 51
Setting block 51, was clear before
tst_bitmaps: setb 52
Setting block 52, was clear before
tst_bitmaps: clearb 2
Clearing block 2, was set before
tst_bitmaps: clearb 3
Clearing block 3, was set before
tst_bitmaps: clearb 7
Clearing block 7, was set before
tst_bitmaps: dump_bb
block bitmap: b92a85e6c4680d000000000000000000
bits set: 25
tst_bitmaps: ffsb 14 127
First marked block is 14
tst_bitmaps: ffsb 15 127
First marked block is 17
tst_bitmaps: ffsb 36 127
First marked block is 39
tst_bitmaps: ffsb 32 127
First marked block is 32
tst_bitmaps: ffsb 52 127
First marked block is 52
tst_bitmaps: ffsb 53 127
ext2fs_find_first_set_block_bitmap2() returned No such file or directory
tst_bitmaps: ffsb 46 127
First marked block is 46
tst_bitmaps: ffsb 45 127
First marked block is 46
tst_bitmaps: ffsb 41 127
First marked block is 44
tst_bitmaps: ffsb 20 127
First marked block is 24
tst_bitmaps: ffsb 1 127
First marked block is 1
tst_bitmaps: ffsb 2 127
First marked block is 4
tst_bitmaps: ffsb 3 127
First marked block is 4
tst_bitmaps: ffsb 4 127
First marked block is 4
tst_bitmaps: ffsb 5 127
First marked block is 5
tst_bitmaps: ffsb 6 127
First marked block is 6
tst_bitmaps: ffsb 7 127
First marked block is 8
tst_bitmaps: ffsb 8 127
First marked block is 8
tst_bitmaps: ffzb 1 127
First unmarked block is 2
tst_bitmaps: ffzb 2 127
First unmarked block is 2
tst_bitmaps: ffzb 3 127
First unmarked block is 3
tst_bitmaps: ffzb 4 127
First unmarked block is 7
tst_bitmaps: ffzb 5 127
First unmarked block is 7
tst_bitmaps: ffzb 6 127
First unmarked block is 7
tst_bitmaps: ffzb 7 127
First unmarked block is 7
tst_bitmaps: ffzb 8 127
First unmarked block is 9
tst_bitmaps: ffzb 45 127
First unmarked block is 45
tst_bitmaps: ffzb 46 127
First unmarked block is 48
tst_bitmaps: ffzb 47 127
First unmarked block is 48
tst_bitmaps: ffzb 48 127
First unmarked block is 48
tst_bitmaps: ffzb 49 127
First unmarked block is 50
tst_bitmaps: ffzb 50 127
First unmarked block is 50
tst_bitmaps: ffzb 51 127
First unmarked block is 53
tst_bitmaps: quit
tst_bitmaps:
|