]>
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 | ||
7486458c | 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 | ||
f394f1fe KW |
55 | Header extension: |
56 | magic 0x12345678 | |
57 | length 31 | |
58 | data 'This is a test header extension' | |
59 | ||
60 | No errors were found on the image. | |
61 | ||
62 | === Add a backing file and format === | |
63 | ||
64 | magic 0x514649fb | |
65 | version 2 | |
1a4828c7 | 66 | backing_file_offset 0x90 |
1042ec94 KW |
67 | backing_file_size 0x17 |
68 | cluster_bits 16 | |
69 | size 67108864 | |
70 | crypt_method 0 | |
71 | l1_size 1 | |
72 | l1_table_offset 0x30000 | |
73 | refcount_table_offset 0x10000 | |
74 | refcount_table_clusters 1 | |
75 | nb_snapshots 0 | |
76 | snapshot_offset 0x0 | |
77 | incompatible_features 0x0 | |
78 | compatible_features 0x0 | |
79 | autoclear_features 0x0 | |
80 | refcount_order 4 | |
81 | header_length 72 | |
82 | ||
83 | Header extension: | |
84 | magic 0xe2792aca | |
85 | length 11 | |
86 | data 'host_device' | |
87 | ||
1042ec94 KW |
88 | Header extension: |
89 | magic 0x12345678 | |
90 | length 31 | |
91 | data 'This is a test header extension' | |
92 | ||
93 | ||
94 | ===== Testing with -o compat=1.1 ===== | |
95 | ||
96 | === Create image with unknown header extension === | |
97 | ||
7486458c | 98 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
1042ec94 KW |
99 | magic 0x514649fb |
100 | version 3 | |
101 | backing_file_offset 0x0 | |
102 | backing_file_size 0x0 | |
103 | cluster_bits 16 | |
104 | size 67108864 | |
105 | crypt_method 0 | |
106 | l1_size 1 | |
107 | l1_table_offset 0x30000 | |
108 | refcount_table_offset 0x10000 | |
109 | refcount_table_clusters 1 | |
110 | nb_snapshots 0 | |
111 | snapshot_offset 0x0 | |
112 | incompatible_features 0x0 | |
113 | compatible_features 0x0 | |
114 | autoclear_features 0x0 | |
115 | refcount_order 4 | |
116 | header_length 104 | |
117 | ||
b527c9b3 KW |
118 | Header extension: |
119 | magic 0x6803f857 | |
120 | length 144 | |
121 | data <binary> | |
122 | ||
1042ec94 KW |
123 | Header extension: |
124 | magic 0x12345678 | |
125 | length 31 | |
126 | data 'This is a test header extension' | |
127 | ||
128 | No errors were found on the image. | |
129 | ||
130 | === Rewrite header with no backing file === | |
131 | ||
132 | magic 0x514649fb | |
133 | version 3 | |
134 | backing_file_offset 0x0 | |
135 | backing_file_size 0x0 | |
136 | cluster_bits 16 | |
137 | size 67108864 | |
138 | crypt_method 0 | |
139 | l1_size 1 | |
140 | l1_table_offset 0x30000 | |
141 | refcount_table_offset 0x10000 | |
142 | refcount_table_clusters 1 | |
143 | nb_snapshots 0 | |
144 | snapshot_offset 0x0 | |
145 | incompatible_features 0x0 | |
146 | compatible_features 0x0 | |
147 | autoclear_features 0x0 | |
148 | refcount_order 4 | |
149 | header_length 104 | |
150 | ||
151 | Header extension: | |
152 | magic 0x6803f857 | |
69c98726 | 153 | length 144 |
c61d0004 | 154 | data <binary> |
1042ec94 KW |
155 | |
156 | Header extension: | |
157 | magic 0x12345678 | |
158 | length 31 | |
159 | data 'This is a test header extension' | |
160 | ||
161 | No errors were found on the image. | |
162 | ||
163 | === Add a backing file and format === | |
164 | ||
165 | magic 0x514649fb | |
166 | version 3 | |
69c98726 | 167 | backing_file_offset 0x148 |
f394f1fe KW |
168 | backing_file_size 0x17 |
169 | cluster_bits 16 | |
170 | size 67108864 | |
171 | crypt_method 0 | |
172 | l1_size 1 | |
173 | l1_table_offset 0x30000 | |
174 | refcount_table_offset 0x10000 | |
175 | refcount_table_clusters 1 | |
176 | nb_snapshots 0 | |
177 | snapshot_offset 0x0 | |
1042ec94 KW |
178 | incompatible_features 0x0 |
179 | compatible_features 0x0 | |
180 | autoclear_features 0x0 | |
181 | refcount_order 4 | |
182 | header_length 104 | |
f394f1fe KW |
183 | |
184 | Header extension: | |
185 | magic 0xe2792aca | |
186 | length 11 | |
187 | data 'host_device' | |
188 | ||
1042ec94 KW |
189 | Header extension: |
190 | magic 0x6803f857 | |
69c98726 | 191 | length 144 |
c61d0004 | 192 | data <binary> |
1042ec94 | 193 | |
f394f1fe KW |
194 | Header extension: |
195 | magic 0x12345678 | |
196 | length 31 | |
197 | data 'This is a test header extension' | |
198 | ||
199 | *** done |