[Devel] [PATCH vz9 v3 2/2] dm-qcow2: support mixed compression images

2025-02-19 Thread Alexander Atanasov
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

[Devel] [PATCH vz9 v3 1/2] dm-qcow2: fix qcow2 decompression

2025-02-19 Thread Alexander Atanasov
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_

Re: [Devel] [PATCH vz9 v3 1/2] dm-qcow2: fix qcow2 decompression

2025-02-19 Thread Pavel Tikhomirov
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

[Devel] [PATCH] dm-qcow2: parse bitmap extension

2025-02-19 Thread Andrey Zhadchenko
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

[Devel] [PATCH RHEL9 COMMIT] dm-qcow2: fix qcow2 decompression

2025-02-19 Thread Konstantin Khorenko
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:

[Devel] [PATCH RHEL9 COMMIT] dm-qcow2: support mixed compression images

2025-02-19 Thread Konstantin Khorenko
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: