2017-11-17 14:29:13 +03:00
|
|
|
QA output created by 198
|
|
|
|
== create base ==
|
|
|
|
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=16777216 encrypt.format=luks encrypt.key-secret=sec0 encrypt.iter-time=10
|
|
|
|
|
|
|
|
== writing whole image base ==
|
|
|
|
wrote 16777216/16777216 bytes at offset 0
|
|
|
|
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
== create overlay ==
|
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=16777216 backing_file=TEST_DIR/t.IMGFMT.base encrypt.format=luks encrypt.key-secret=sec1 encrypt.iter-time=10
|
|
|
|
|
|
|
|
== writing whole image layer ==
|
|
|
|
wrote 16777216/16777216 bytes at offset 0
|
|
|
|
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== verify pattern base ==
|
|
|
|
read 16777216/16777216 bytes at offset 0
|
|
|
|
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== verify pattern layer ==
|
|
|
|
read 16777216/16777216 bytes at offset 0
|
|
|
|
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== committing layer into base ==
|
|
|
|
Image committed.
|
|
|
|
|
|
|
|
== verify pattern base ==
|
|
|
|
read 16777216/16777216 bytes at offset 0
|
|
|
|
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== verify pattern layer ==
|
|
|
|
read 16777216/16777216 bytes at offset 0
|
|
|
|
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== checking image base ==
|
2019-11-07 19:37:06 +03:00
|
|
|
image: json:{ /* filtered */ }
|
2017-11-17 14:29:13 +03:00
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 16 MiB (16777216 bytes)
|
2017-11-17 14:29:13 +03:00
|
|
|
Format specific information:
|
qcow2: introduce compression type feature
The patch adds some preparation parts for incompatible compression type
feature to qcow2 allowing the use different compression methods for
image clusters (de)compressing.
It is implied that the compression type is set on the image creation and
can be changed only later by image conversion, thus compression type
defines the only compression algorithm used for the image, and thus,
for all image clusters.
The goal of the feature is to add support of other compression methods
to qcow2. For example, ZSTD which is more effective on compression than ZLIB.
The default compression is ZLIB. Images created with ZLIB compression type
are backward compatible with older qemu versions.
Adding of the compression type breaks a number of tests because now the
compression type is reported on image creation and there are some changes
in the qcow2 header in size and offsets.
The tests are fixed in the following ways:
* filter out compression_type for many tests
* fix header size, feature table size and backing file offset
affected tests: 031, 036, 061, 080
header_size +=8: 1 byte compression type
7 bytes padding
feature_table += 48: incompatible feature compression type
backing_file_offset += 56 (8 + 48 -> header_change + feature_table_change)
* add "compression type" for test output matching when it isn't filtered
affected tests: 049, 060, 061, 065, 082, 085, 144, 182, 185, 198, 206,
242, 255, 274, 280
Signed-off-by: Denis Plotnikov <dplotnikov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
QAPI part:
Acked-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200507082521.29210-2-dplotnikov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
2020-05-07 11:25:18 +03:00
|
|
|
compression type: zlib
|
2017-11-17 14:29:13 +03:00
|
|
|
encrypt:
|
|
|
|
ivgen alg: plain64
|
|
|
|
hash alg: sha256
|
|
|
|
cipher alg: aes-256
|
|
|
|
uuid: 00000000-0000-0000-0000-000000000000
|
|
|
|
format: luks
|
|
|
|
cipher mode: xts
|
|
|
|
slots:
|
|
|
|
[0]:
|
|
|
|
active: true
|
|
|
|
iters: 1024
|
|
|
|
key offset: 4096
|
|
|
|
stripes: 4000
|
|
|
|
[1]:
|
|
|
|
active: false
|
|
|
|
key offset: 262144
|
|
|
|
[2]:
|
|
|
|
active: false
|
|
|
|
key offset: 520192
|
|
|
|
[3]:
|
|
|
|
active: false
|
|
|
|
key offset: 778240
|
|
|
|
[4]:
|
|
|
|
active: false
|
|
|
|
key offset: 1036288
|
|
|
|
[5]:
|
|
|
|
active: false
|
|
|
|
key offset: 1294336
|
|
|
|
[6]:
|
|
|
|
active: false
|
|
|
|
key offset: 1552384
|
|
|
|
[7]:
|
|
|
|
active: false
|
|
|
|
key offset: 1810432
|
|
|
|
payload offset: 2068480
|
|
|
|
master key iters: 1024
|
|
|
|
|
|
|
|
== checking image layer ==
|
2019-11-07 19:37:06 +03:00
|
|
|
image: json:{ /* filtered */ }
|
2017-11-17 14:29:13 +03:00
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 16 MiB (16777216 bytes)
|
2017-11-17 14:29:13 +03:00
|
|
|
backing file: TEST_DIR/t.IMGFMT.base
|
|
|
|
Format specific information:
|
qcow2: introduce compression type feature
The patch adds some preparation parts for incompatible compression type
feature to qcow2 allowing the use different compression methods for
image clusters (de)compressing.
It is implied that the compression type is set on the image creation and
can be changed only later by image conversion, thus compression type
defines the only compression algorithm used for the image, and thus,
for all image clusters.
The goal of the feature is to add support of other compression methods
to qcow2. For example, ZSTD which is more effective on compression than ZLIB.
The default compression is ZLIB. Images created with ZLIB compression type
are backward compatible with older qemu versions.
Adding of the compression type breaks a number of tests because now the
compression type is reported on image creation and there are some changes
in the qcow2 header in size and offsets.
The tests are fixed in the following ways:
* filter out compression_type for many tests
* fix header size, feature table size and backing file offset
affected tests: 031, 036, 061, 080
header_size +=8: 1 byte compression type
7 bytes padding
feature_table += 48: incompatible feature compression type
backing_file_offset += 56 (8 + 48 -> header_change + feature_table_change)
* add "compression type" for test output matching when it isn't filtered
affected tests: 049, 060, 061, 065, 082, 085, 144, 182, 185, 198, 206,
242, 255, 274, 280
Signed-off-by: Denis Plotnikov <dplotnikov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
QAPI part:
Acked-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200507082521.29210-2-dplotnikov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
2020-05-07 11:25:18 +03:00
|
|
|
compression type: zlib
|
2017-11-17 14:29:13 +03:00
|
|
|
encrypt:
|
|
|
|
ivgen alg: plain64
|
|
|
|
hash alg: sha256
|
|
|
|
cipher alg: aes-256
|
|
|
|
uuid: 00000000-0000-0000-0000-000000000000
|
|
|
|
format: luks
|
|
|
|
cipher mode: xts
|
|
|
|
slots:
|
|
|
|
[0]:
|
|
|
|
active: true
|
|
|
|
iters: 1024
|
|
|
|
key offset: 4096
|
|
|
|
stripes: 4000
|
|
|
|
[1]:
|
|
|
|
active: false
|
|
|
|
key offset: 262144
|
|
|
|
[2]:
|
|
|
|
active: false
|
|
|
|
key offset: 520192
|
|
|
|
[3]:
|
|
|
|
active: false
|
|
|
|
key offset: 778240
|
|
|
|
[4]:
|
|
|
|
active: false
|
|
|
|
key offset: 1036288
|
|
|
|
[5]:
|
|
|
|
active: false
|
|
|
|
key offset: 1294336
|
|
|
|
[6]:
|
|
|
|
active: false
|
|
|
|
key offset: 1552384
|
|
|
|
[7]:
|
|
|
|
active: false
|
|
|
|
key offset: 1810432
|
|
|
|
payload offset: 2068480
|
|
|
|
master key iters: 1024
|
|
|
|
*** done
|