blob: 7f5050b81686edb706ffa3b9f4da55749a558377 [file] [log] [blame]
Kevin Wolff394f1f2012-02-16 16:55:01 +01001QA output created by 031
2
Kevin Wolf1042ec92012-04-12 17:21:44 +02003===== Testing with -o compat=0.10 =====
4
Kevin Wolff394f1f2012-02-16 16:55:01 +01005=== Create image with unknown header extension ===
6
Fam Zheng74864582014-12-09 15:38:03 +08007Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
Kevin Wolff394f1f2012-02-16 16:55:01 +01008magic 0x514649fb
9version 2
10backing_file_offset 0x0
11backing_file_size 0x0
12cluster_bits 16
13size 67108864
14crypt_method 0
15l1_size 1
16l1_table_offset 0x30000
17refcount_table_offset 0x10000
18refcount_table_clusters 1
19nb_snapshots 0
20snapshot_offset 0x0
Kevin Wolf1042ec92012-04-12 17:21:44 +020021incompatible_features 0x0
22compatible_features 0x0
23autoclear_features 0x0
24refcount_order 4
25header_length 72
Kevin Wolff394f1f2012-02-16 16:55:01 +010026
27Header extension:
28magic 0x12345678
29length 31
30data 'This is a test header extension'
31
32No errors were found on the image.
33
34=== Rewrite header with no backing file ===
35
36magic 0x514649fb
37version 2
38backing_file_offset 0x0
39backing_file_size 0x0
40cluster_bits 16
41size 67108864
42crypt_method 0
43l1_size 1
44l1_table_offset 0x30000
45refcount_table_offset 0x10000
46refcount_table_clusters 1
47nb_snapshots 0
48snapshot_offset 0x0
Kevin Wolf1042ec92012-04-12 17:21:44 +020049incompatible_features 0x0
50compatible_features 0x0
51autoclear_features 0x0
52refcount_order 4
53header_length 72
54
55Header extension:
Kevin Wolff394f1f2012-02-16 16:55:01 +010056magic 0x12345678
57length 31
58data 'This is a test header extension'
59
60No errors were found on the image.
61
62=== Add a backing file and format ===
63
64magic 0x514649fb
65version 2
Kevin Wolf1a4828c2015-12-02 19:11:04 +010066backing_file_offset 0x90
Kevin Wolff394f1f2012-02-16 16:55:01 +010067backing_file_size 0x17
68cluster_bits 16
69size 67108864
70crypt_method 0
71l1_size 1
72l1_table_offset 0x30000
73refcount_table_offset 0x10000
74refcount_table_clusters 1
75nb_snapshots 0
76snapshot_offset 0x0
Kevin Wolf1042ec92012-04-12 17:21:44 +020077incompatible_features 0x0
78compatible_features 0x0
79autoclear_features 0x0
80refcount_order 4
81header_length 72
Kevin Wolff394f1f2012-02-16 16:55:01 +010082
83Header extension:
84magic 0xe2792aca
85length 11
86data 'host_device'
87
88Header extension:
Kevin Wolf1042ec92012-04-12 17:21:44 +020089magic 0x12345678
90length 31
91data 'This is a test header extension'
92
93
94===== Testing with -o compat=1.1 =====
95
96=== Create image with unknown header extension ===
97
Fam Zheng74864582014-12-09 15:38:03 +080098Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
Kevin Wolf1042ec92012-04-12 17:21:44 +020099magic 0x514649fb
100version 3
101backing_file_offset 0x0
102backing_file_size 0x0
103cluster_bits 16
104size 67108864
105crypt_method 0
106l1_size 1
107l1_table_offset 0x30000
108refcount_table_offset 0x10000
109refcount_table_clusters 1
110nb_snapshots 0
111snapshot_offset 0x0
112incompatible_features 0x0
113compatible_features 0x0
114autoclear_features 0x0
115refcount_order 4
116header_length 104
117
118Header extension:
Kevin Wolfb527c9b2015-12-02 18:34:39 +0100119magic 0x6803f857
120length 144
121data <binary>
122
123Header extension:
Kevin Wolf1042ec92012-04-12 17:21:44 +0200124magic 0x12345678
125length 31
126data 'This is a test header extension'
127
128No errors were found on the image.
129
130=== Rewrite header with no backing file ===
131
132magic 0x514649fb
133version 3
134backing_file_offset 0x0
135backing_file_size 0x0
136cluster_bits 16
137size 67108864
138crypt_method 0
139l1_size 1
140l1_table_offset 0x30000
141refcount_table_offset 0x10000
142refcount_table_clusters 1
143nb_snapshots 0
144snapshot_offset 0x0
145incompatible_features 0x0
146compatible_features 0x0
147autoclear_features 0x0
148refcount_order 4
149header_length 104
150
151Header extension:
152magic 0x6803f857
Max Reitz69c98722013-08-30 14:34:24 +0200153length 144
Stefan Hajnoczic61d0002012-07-27 09:05:19 +0100154data <binary>
Kevin Wolf1042ec92012-04-12 17:21:44 +0200155
156Header extension:
157magic 0x12345678
158length 31
159data 'This is a test header extension'
160
161No errors were found on the image.
162
163=== Add a backing file and format ===
164
165magic 0x514649fb
166version 3
Max Reitz69c98722013-08-30 14:34:24 +0200167backing_file_offset 0x148
Kevin Wolf1042ec92012-04-12 17:21:44 +0200168backing_file_size 0x17
169cluster_bits 16
170size 67108864
171crypt_method 0
172l1_size 1
173l1_table_offset 0x30000
174refcount_table_offset 0x10000
175refcount_table_clusters 1
176nb_snapshots 0
177snapshot_offset 0x0
178incompatible_features 0x0
179compatible_features 0x0
180autoclear_features 0x0
181refcount_order 4
182header_length 104
183
184Header extension:
185magic 0xe2792aca
186length 11
187data 'host_device'
188
189Header extension:
190magic 0x6803f857
Max Reitz69c98722013-08-30 14:34:24 +0200191length 144
Stefan Hajnoczic61d0002012-07-27 09:05:19 +0100192data <binary>
Kevin Wolf1042ec92012-04-12 17:21:44 +0200193
194Header extension:
Kevin Wolff394f1f2012-02-16 16:55:01 +0100195magic 0x12345678
196length 31
197data 'This is a test header extension'
198
199*** done