Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 1 | QA output created by 031 |
| 2 | |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 3 | ===== Testing with -o compat=0.10 ===== |
| 4 | |
Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 5 | === Create image with unknown header extension === |
| 6 | |
Fam Zheng | 7486458 | 2014-12-09 15:38:03 +0800 | [diff] [blame] | 7 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 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 |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 21 | incompatible_features [] |
| 22 | compatible_features [] |
| 23 | autoclear_features [] |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 24 | refcount_order 4 |
| 25 | header_length 72 |
Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 26 | |
| 27 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 28 | magic 0x12345678 (<unknown>) |
Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 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 |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 49 | incompatible_features [] |
| 50 | compatible_features [] |
| 51 | autoclear_features [] |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 52 | refcount_order 4 |
| 53 | header_length 72 |
| 54 | |
| 55 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 56 | magic 0x12345678 (<unknown>) |
Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 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 |
Kevin Wolf | 1a4828c | 2015-12-02 19:11:04 +0100 | [diff] [blame] | 66 | backing_file_offset 0x90 |
Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 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 |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 77 | incompatible_features [] |
| 78 | compatible_features [] |
| 79 | autoclear_features [] |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 80 | refcount_order 4 |
| 81 | header_length 72 |
Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 82 | |
| 83 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 84 | magic 0xe2792aca (Backing format) |
Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 85 | length 11 |
| 86 | data 'host_device' |
| 87 | |
| 88 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 89 | magic 0x12345678 (<unknown>) |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 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 | |
Fam Zheng | 7486458 | 2014-12-09 15:38:03 +0800 | [diff] [blame] | 98 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 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 |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 112 | incompatible_features [] |
| 113 | compatible_features [] |
| 114 | autoclear_features [] |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 115 | refcount_order 4 |
Denis Plotnikov | 572ad97 | 2020-05-07 11:25:18 +0300 | [diff] [blame] | 116 | header_length 112 |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 117 | |
| 118 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 119 | magic 0x6803f857 (Feature table) |
Alberto Garcia | 7be2025 | 2020-07-10 18:13:13 +0200 | [diff] [blame] | 120 | length 384 |
Kevin Wolf | b527c9b | 2015-12-02 18:34:39 +0100 | [diff] [blame] | 121 | data <binary> |
| 122 | |
| 123 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 124 | magic 0x12345678 (<unknown>) |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 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 |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 145 | incompatible_features [] |
| 146 | compatible_features [] |
| 147 | autoclear_features [] |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 148 | refcount_order 4 |
Denis Plotnikov | 572ad97 | 2020-05-07 11:25:18 +0300 | [diff] [blame] | 149 | header_length 112 |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 150 | |
| 151 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 152 | magic 0x6803f857 (Feature table) |
Alberto Garcia | 7be2025 | 2020-07-10 18:13:13 +0200 | [diff] [blame] | 153 | length 384 |
Stefan Hajnoczi | c61d000 | 2012-07-27 09:05:19 +0100 | [diff] [blame] | 154 | data <binary> |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 155 | |
| 156 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 157 | magic 0x12345678 (<unknown>) |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 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 |
Alberto Garcia | 7be2025 | 2020-07-10 18:13:13 +0200 | [diff] [blame] | 167 | backing_file_offset 0x240 |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 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 |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 178 | incompatible_features [] |
| 179 | compatible_features [] |
| 180 | autoclear_features [] |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 181 | refcount_order 4 |
Denis Plotnikov | 572ad97 | 2020-05-07 11:25:18 +0300 | [diff] [blame] | 182 | header_length 112 |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 183 | |
| 184 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 185 | magic 0xe2792aca (Backing format) |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 186 | length 11 |
| 187 | data 'host_device' |
| 188 | |
| 189 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 190 | magic 0x6803f857 (Feature table) |
Alberto Garcia | 7be2025 | 2020-07-10 18:13:13 +0200 | [diff] [blame] | 191 | length 384 |
Stefan Hajnoczi | c61d000 | 2012-07-27 09:05:19 +0100 | [diff] [blame] | 192 | data <binary> |
Kevin Wolf | 1042ec9 | 2012-04-12 17:21:44 +0200 | [diff] [blame] | 193 | |
| 194 | Header extension: |
Vladimir Sementsov-Ogievskiy | aef8778 | 2020-06-06 11:18:05 +0300 | [diff] [blame] | 195 | magic 0x12345678 (<unknown>) |
Kevin Wolf | f394f1f | 2012-02-16 16:55:01 +0100 | [diff] [blame] | 196 | length 31 |
| 197 | data 'This is a test header extension' |
| 198 | |
| 199 | *** done |