mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 23:13:29 +08:00
7be2025258
Now that the implementation of subclusters is complete we can finally add the necessary options to create and read images with this feature, which we call "extended L2 entries". Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <6476caaa73216bd05b7bb2d504a20415e1665176.1594396418.git.berto@igalia.com> [mreitz: %s/5\.1/5.2/; fixed 302's and 303's reference output] Signed-off-by: Max Reitz <mreitz@redhat.com>
200 lines
5.4 KiB
Plaintext
200 lines
5.4 KiB
Plaintext
QA output created by 031
|
|
|
|
===== Testing with -o compat=0.10 =====
|
|
|
|
=== Create image with unknown header extension ===
|
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
|
magic 0x514649fb
|
|
version 2
|
|
backing_file_offset 0x0
|
|
backing_file_size 0x0
|
|
cluster_bits 16
|
|
size 67108864
|
|
crypt_method 0
|
|
l1_size 1
|
|
l1_table_offset 0x30000
|
|
refcount_table_offset 0x10000
|
|
refcount_table_clusters 1
|
|
nb_snapshots 0
|
|
snapshot_offset 0x0
|
|
incompatible_features []
|
|
compatible_features []
|
|
autoclear_features []
|
|
refcount_order 4
|
|
header_length 72
|
|
|
|
Header extension:
|
|
magic 0x12345678 (<unknown>)
|
|
length 31
|
|
data 'This is a test header extension'
|
|
|
|
No errors were found on the image.
|
|
|
|
=== Rewrite header with no backing file ===
|
|
|
|
magic 0x514649fb
|
|
version 2
|
|
backing_file_offset 0x0
|
|
backing_file_size 0x0
|
|
cluster_bits 16
|
|
size 67108864
|
|
crypt_method 0
|
|
l1_size 1
|
|
l1_table_offset 0x30000
|
|
refcount_table_offset 0x10000
|
|
refcount_table_clusters 1
|
|
nb_snapshots 0
|
|
snapshot_offset 0x0
|
|
incompatible_features []
|
|
compatible_features []
|
|
autoclear_features []
|
|
refcount_order 4
|
|
header_length 72
|
|
|
|
Header extension:
|
|
magic 0x12345678 (<unknown>)
|
|
length 31
|
|
data 'This is a test header extension'
|
|
|
|
No errors were found on the image.
|
|
|
|
=== Add a backing file and format ===
|
|
|
|
magic 0x514649fb
|
|
version 2
|
|
backing_file_offset 0x90
|
|
backing_file_size 0x17
|
|
cluster_bits 16
|
|
size 67108864
|
|
crypt_method 0
|
|
l1_size 1
|
|
l1_table_offset 0x30000
|
|
refcount_table_offset 0x10000
|
|
refcount_table_clusters 1
|
|
nb_snapshots 0
|
|
snapshot_offset 0x0
|
|
incompatible_features []
|
|
compatible_features []
|
|
autoclear_features []
|
|
refcount_order 4
|
|
header_length 72
|
|
|
|
Header extension:
|
|
magic 0xe2792aca (Backing format)
|
|
length 11
|
|
data 'host_device'
|
|
|
|
Header extension:
|
|
magic 0x12345678 (<unknown>)
|
|
length 31
|
|
data 'This is a test header extension'
|
|
|
|
|
|
===== Testing with -o compat=1.1 =====
|
|
|
|
=== Create image with unknown header extension ===
|
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
|
magic 0x514649fb
|
|
version 3
|
|
backing_file_offset 0x0
|
|
backing_file_size 0x0
|
|
cluster_bits 16
|
|
size 67108864
|
|
crypt_method 0
|
|
l1_size 1
|
|
l1_table_offset 0x30000
|
|
refcount_table_offset 0x10000
|
|
refcount_table_clusters 1
|
|
nb_snapshots 0
|
|
snapshot_offset 0x0
|
|
incompatible_features []
|
|
compatible_features []
|
|
autoclear_features []
|
|
refcount_order 4
|
|
header_length 112
|
|
|
|
Header extension:
|
|
magic 0x6803f857 (Feature table)
|
|
length 384
|
|
data <binary>
|
|
|
|
Header extension:
|
|
magic 0x12345678 (<unknown>)
|
|
length 31
|
|
data 'This is a test header extension'
|
|
|
|
No errors were found on the image.
|
|
|
|
=== Rewrite header with no backing file ===
|
|
|
|
magic 0x514649fb
|
|
version 3
|
|
backing_file_offset 0x0
|
|
backing_file_size 0x0
|
|
cluster_bits 16
|
|
size 67108864
|
|
crypt_method 0
|
|
l1_size 1
|
|
l1_table_offset 0x30000
|
|
refcount_table_offset 0x10000
|
|
refcount_table_clusters 1
|
|
nb_snapshots 0
|
|
snapshot_offset 0x0
|
|
incompatible_features []
|
|
compatible_features []
|
|
autoclear_features []
|
|
refcount_order 4
|
|
header_length 112
|
|
|
|
Header extension:
|
|
magic 0x6803f857 (Feature table)
|
|
length 384
|
|
data <binary>
|
|
|
|
Header extension:
|
|
magic 0x12345678 (<unknown>)
|
|
length 31
|
|
data 'This is a test header extension'
|
|
|
|
No errors were found on the image.
|
|
|
|
=== Add a backing file and format ===
|
|
|
|
magic 0x514649fb
|
|
version 3
|
|
backing_file_offset 0x240
|
|
backing_file_size 0x17
|
|
cluster_bits 16
|
|
size 67108864
|
|
crypt_method 0
|
|
l1_size 1
|
|
l1_table_offset 0x30000
|
|
refcount_table_offset 0x10000
|
|
refcount_table_clusters 1
|
|
nb_snapshots 0
|
|
snapshot_offset 0x0
|
|
incompatible_features []
|
|
compatible_features []
|
|
autoclear_features []
|
|
refcount_order 4
|
|
header_length 112
|
|
|
|
Header extension:
|
|
magic 0xe2792aca (Backing format)
|
|
length 11
|
|
data 'host_device'
|
|
|
|
Header extension:
|
|
magic 0x6803f857 (Feature table)
|
|
length 384
|
|
data <binary>
|
|
|
|
Header extension:
|
|
magic 0x12345678 (<unknown>)
|
|
length 31
|
|
data 'This is a test header extension'
|
|
|
|
*** done
|