Currently code uses only top qcow2 delta to handle decompression.
Images have compression type in the qcow2 header already set when loaded.
To support mixed compression switch to use qio->qcow2 and respective
qcow2 header so the decompression is performed with the correct type.
Remove qcow2 argume
Two problems - using wrong size type:
- process_compressed_read used blk_status_t for ret which is u8
so it can not process negative error codes and larger sizes
properly - fix this by changing it to int
- decompression fails for images with size larger than 2GB
due to wrong return type of parse_
Reviewed-by: Pavel Tikhomirov
(for both patches)
On 2/19/25 18:47, Alexander Atanasov wrote:
Two problems - using wrong size type:
- process_compressed_read used blk_status_t for ret which is u8
so it can not process negative error codes and larger sizes
properly - fix this by changing it to
If qcow2 file has only inactive bitmaps, we should not reset
QCOW2_AUTOCLEAR_BITMAPS bit. Bitmaps are already allocated and
we are not expected to change them.
Still reset this bit if we encounter enabled bitmap.
https://virtuozzo.atlassian.net/browse/VSTOR-99404
Signed-off-by: Andrey Zhadchenko
The commit is pushed to "branch-rh9-5.14.0-427.44.1.vz9.80.x-ovz" and will
appear at g...@bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.44.1.vz9.80.16
-->
commit be70e9b1c7ec7ad394195f9793cfaf07d9097be7
Author: Alexander Atanasov
Date: Wed Feb 19 12:47:31 2025 +0200
dm-qcow2:
The commit is pushed to "branch-rh9-5.14.0-427.44.1.vz9.80.x-ovz" and will
appear at g...@bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.44.1.vz9.80.16
-->
commit 406c4cdff1bbf1379710a27eec60e033ba0f1672
Author: Alexander Atanasov
Date: Wed Feb 19 12:47:32 2025 +0200
dm-qcow2: