blob: 0054c2ed97de0813c374dc0ce3730b88eff69e45 [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
Max Reitz0485e6e2019-11-07 17:36:49 +010021incompatible_features []
22compatible_features []
23autoclear_features []
Kevin Wolf1042ec92012-04-12 17:21:44 +020024refcount_order 4
25header_length 72
Kevin Wolff394f1f2012-02-16 16:55:01 +010026
27Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +030028magic 0x12345678 (<unknown>)
Kevin Wolff394f1f2012-02-16 16:55:01 +010029length 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
Max Reitz0485e6e2019-11-07 17:36:49 +010049incompatible_features []
50compatible_features []
51autoclear_features []
Kevin Wolf1042ec92012-04-12 17:21:44 +020052refcount_order 4
53header_length 72
54
55Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +030056magic 0x12345678 (<unknown>)
Kevin Wolff394f1f2012-02-16 16:55:01 +010057length 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
Max Reitz0485e6e2019-11-07 17:36:49 +010077incompatible_features []
78compatible_features []
79autoclear_features []
Kevin Wolf1042ec92012-04-12 17:21:44 +020080refcount_order 4
81header_length 72
Kevin Wolff394f1f2012-02-16 16:55:01 +010082
83Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +030084magic 0xe2792aca (Backing format)
Kevin Wolff394f1f2012-02-16 16:55:01 +010085length 11
86data 'host_device'
87
88Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +030089magic 0x12345678 (<unknown>)
Kevin Wolf1042ec92012-04-12 17:21:44 +020090length 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
Max Reitz0485e6e2019-11-07 17:36:49 +0100112incompatible_features []
113compatible_features []
114autoclear_features []
Kevin Wolf1042ec92012-04-12 17:21:44 +0200115refcount_order 4
Denis Plotnikov572ad972020-05-07 11:25:18 +0300116header_length 112
Kevin Wolf1042ec92012-04-12 17:21:44 +0200117
118Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +0300119magic 0x6803f857 (Feature table)
Alberto Garcia7be20252020-07-10 18:13:13 +0200120length 384
Kevin Wolfb527c9b2015-12-02 18:34:39 +0100121data <binary>
122
123Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +0300124magic 0x12345678 (<unknown>)
Kevin Wolf1042ec92012-04-12 17:21:44 +0200125length 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
Max Reitz0485e6e2019-11-07 17:36:49 +0100145incompatible_features []
146compatible_features []
147autoclear_features []
Kevin Wolf1042ec92012-04-12 17:21:44 +0200148refcount_order 4
Denis Plotnikov572ad972020-05-07 11:25:18 +0300149header_length 112
Kevin Wolf1042ec92012-04-12 17:21:44 +0200150
151Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +0300152magic 0x6803f857 (Feature table)
Alberto Garcia7be20252020-07-10 18:13:13 +0200153length 384
Stefan Hajnoczic61d0002012-07-27 09:05:19 +0100154data <binary>
Kevin Wolf1042ec92012-04-12 17:21:44 +0200155
156Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +0300157magic 0x12345678 (<unknown>)
Kevin Wolf1042ec92012-04-12 17:21:44 +0200158length 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
Alberto Garcia7be20252020-07-10 18:13:13 +0200167backing_file_offset 0x240
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
Max Reitz0485e6e2019-11-07 17:36:49 +0100178incompatible_features []
179compatible_features []
180autoclear_features []
Kevin Wolf1042ec92012-04-12 17:21:44 +0200181refcount_order 4
Denis Plotnikov572ad972020-05-07 11:25:18 +0300182header_length 112
Kevin Wolf1042ec92012-04-12 17:21:44 +0200183
184Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +0300185magic 0xe2792aca (Backing format)
Kevin Wolf1042ec92012-04-12 17:21:44 +0200186length 11
187data 'host_device'
188
189Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +0300190magic 0x6803f857 (Feature table)
Alberto Garcia7be20252020-07-10 18:13:13 +0200191length 384
Stefan Hajnoczic61d0002012-07-27 09:05:19 +0100192data <binary>
Kevin Wolf1042ec92012-04-12 17:21:44 +0200193
194Header extension:
Vladimir Sementsov-Ogievskiyaef87782020-06-06 11:18:05 +0300195magic 0x12345678 (<unknown>)
Kevin Wolff394f1f2012-02-16 16:55:01 +0100196length 31
197data 'This is a test header extension'
198
199*** done