]>
Commit | Line | Data |
---|---|---|
f394f1fe KW |
1 | QA output created by 031 |
2 | ||
1042ec94 KW |
3 | ===== Testing with -o compat=0.10 ===== |
4 | ||
f394f1fe KW |
5 | === Create image with unknown header extension === |
6 | ||
7299550b | 7 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
f394f1fe KW |
8 | magic 0x514649fb |
9 | version 2 | |
10 | backing_file_offset 0x0 | |
11 | backing_file_size 0x0 | |
12 | cluster_bits 16 | |
13 | size 67108864 | |
14 | crypt_method 0 | |
15 | l1_size 1 | |
16 | l1_table_offset 0x30000 | |
17 | refcount_table_offset 0x10000 | |
18 | refcount_table_clusters 1 | |
19 | nb_snapshots 0 | |
20 | snapshot_offset 0x0 | |
1042ec94 KW |
21 | incompatible_features 0x0 |
22 | compatible_features 0x0 | |
23 | autoclear_features 0x0 | |
24 | refcount_order 4 | |
25 | header_length 72 | |
f394f1fe KW |
26 | |
27 | Header extension: | |
28 | magic 0x12345678 | |
29 | length 31 | |
30 | data 'This is a test header extension' | |
31 | ||
32 | No errors were found on the image. | |
33 | ||
34 | === Rewrite header with no backing file === | |
35 | ||
36 | magic 0x514649fb | |
37 | version 2 | |
38 | backing_file_offset 0x0 | |
39 | backing_file_size 0x0 | |
40 | cluster_bits 16 | |
41 | size 67108864 | |
42 | crypt_method 0 | |
43 | l1_size 1 | |
44 | l1_table_offset 0x30000 | |
45 | refcount_table_offset 0x10000 | |
46 | refcount_table_clusters 1 | |
47 | nb_snapshots 0 | |
48 | snapshot_offset 0x0 | |
1042ec94 KW |
49 | incompatible_features 0x0 |
50 | compatible_features 0x0 | |
51 | autoclear_features 0x0 | |
52 | refcount_order 4 | |
53 | header_length 72 | |
54 | ||
55 | Header extension: | |
56 | magic 0x6803f857 | |
bfe8043e | 57 | length 96 |
c61d0004 | 58 | data <binary> |
f394f1fe KW |
59 | |
60 | Header extension: | |
61 | magic 0x12345678 | |
62 | length 31 | |
63 | data 'This is a test header extension' | |
64 | ||
65 | No errors were found on the image. | |
66 | ||
67 | === Add a backing file and format === | |
68 | ||
69 | magic 0x514649fb | |
70 | version 2 | |
bfe8043e | 71 | backing_file_offset 0xf8 |
1042ec94 KW |
72 | backing_file_size 0x17 |
73 | cluster_bits 16 | |
74 | size 67108864 | |
75 | crypt_method 0 | |
76 | l1_size 1 | |
77 | l1_table_offset 0x30000 | |
78 | refcount_table_offset 0x10000 | |
79 | refcount_table_clusters 1 | |
80 | nb_snapshots 0 | |
81 | snapshot_offset 0x0 | |
82 | incompatible_features 0x0 | |
83 | compatible_features 0x0 | |
84 | autoclear_features 0x0 | |
85 | refcount_order 4 | |
86 | header_length 72 | |
87 | ||
88 | Header extension: | |
89 | magic 0xe2792aca | |
90 | length 11 | |
91 | data 'host_device' | |
92 | ||
93 | Header extension: | |
94 | magic 0x6803f857 | |
bfe8043e | 95 | length 96 |
c61d0004 | 96 | data <binary> |
1042ec94 KW |
97 | |
98 | Header extension: | |
99 | magic 0x12345678 | |
100 | length 31 | |
101 | data 'This is a test header extension' | |
102 | ||
103 | ||
104 | ===== Testing with -o compat=1.1 ===== | |
105 | ||
106 | === Create image with unknown header extension === | |
107 | ||
108 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
109 | magic 0x514649fb | |
110 | version 3 | |
111 | backing_file_offset 0x0 | |
112 | backing_file_size 0x0 | |
113 | cluster_bits 16 | |
114 | size 67108864 | |
115 | crypt_method 0 | |
116 | l1_size 1 | |
117 | l1_table_offset 0x30000 | |
118 | refcount_table_offset 0x10000 | |
119 | refcount_table_clusters 1 | |
120 | nb_snapshots 0 | |
121 | snapshot_offset 0x0 | |
122 | incompatible_features 0x0 | |
123 | compatible_features 0x0 | |
124 | autoclear_features 0x0 | |
125 | refcount_order 4 | |
126 | header_length 104 | |
127 | ||
128 | Header extension: | |
129 | magic 0x12345678 | |
130 | length 31 | |
131 | data 'This is a test header extension' | |
132 | ||
133 | No errors were found on the image. | |
134 | ||
135 | === Rewrite header with no backing file === | |
136 | ||
137 | magic 0x514649fb | |
138 | version 3 | |
139 | backing_file_offset 0x0 | |
140 | backing_file_size 0x0 | |
141 | cluster_bits 16 | |
142 | size 67108864 | |
143 | crypt_method 0 | |
144 | l1_size 1 | |
145 | l1_table_offset 0x30000 | |
146 | refcount_table_offset 0x10000 | |
147 | refcount_table_clusters 1 | |
148 | nb_snapshots 0 | |
149 | snapshot_offset 0x0 | |
150 | incompatible_features 0x0 | |
151 | compatible_features 0x0 | |
152 | autoclear_features 0x0 | |
153 | refcount_order 4 | |
154 | header_length 104 | |
155 | ||
156 | Header extension: | |
157 | magic 0x6803f857 | |
bfe8043e | 158 | length 96 |
c61d0004 | 159 | data <binary> |
1042ec94 KW |
160 | |
161 | Header extension: | |
162 | magic 0x12345678 | |
163 | length 31 | |
164 | data 'This is a test header extension' | |
165 | ||
166 | No errors were found on the image. | |
167 | ||
168 | === Add a backing file and format === | |
169 | ||
170 | magic 0x514649fb | |
171 | version 3 | |
bfe8043e | 172 | backing_file_offset 0x118 |
f394f1fe KW |
173 | backing_file_size 0x17 |
174 | cluster_bits 16 | |
175 | size 67108864 | |
176 | crypt_method 0 | |
177 | l1_size 1 | |
178 | l1_table_offset 0x30000 | |
179 | refcount_table_offset 0x10000 | |
180 | refcount_table_clusters 1 | |
181 | nb_snapshots 0 | |
182 | snapshot_offset 0x0 | |
1042ec94 KW |
183 | incompatible_features 0x0 |
184 | compatible_features 0x0 | |
185 | autoclear_features 0x0 | |
186 | refcount_order 4 | |
187 | header_length 104 | |
f394f1fe KW |
188 | |
189 | Header extension: | |
190 | magic 0xe2792aca | |
191 | length 11 | |
192 | data 'host_device' | |
193 | ||
1042ec94 KW |
194 | Header extension: |
195 | magic 0x6803f857 | |
bfe8043e | 196 | length 96 |
c61d0004 | 197 | data <binary> |
1042ec94 | 198 | |
f394f1fe KW |
199 | Header extension: |
200 | magic 0x12345678 | |
201 | length 31 | |
202 | data 'This is a test header extension' | |
203 | ||
204 | *** done |