Re: [PATCH 2/3] qemu-img: map: report compressed data blocks

2023-07-06 Thread Denis V. Lunev
On 7/6/23 15:10, Andrey Drobyshev wrote: On 6/21/23 21:12, Denis V. Lunev wrote: On 6/7/23 17:26, Andrey Drobyshev wrote: Right now "qemu-img map" reports compressed blocks as containing data but having no host offset.  This is not very informative.  Instead, let's add another boolean field nam

Re: [PATCH 2/3] qemu-img: map: report compressed data blocks

2023-07-06 Thread Andrey Drobyshev
On 6/21/23 21:12, Denis V. Lunev wrote: > On 6/7/23 17:26, Andrey Drobyshev wrote: >> Right now "qemu-img map" reports compressed blocks as containing data >> but having no host offset.  This is not very informative.  Instead, >> let's add another boolean field named "compressed" in case JSON outpu

Re: [PATCH 2/3] qemu-img: map: report compressed data blocks

2023-06-21 Thread Denis V. Lunev
On 6/7/23 17:26, Andrey Drobyshev wrote: Right now "qemu-img map" reports compressed blocks as containing data but having no host offset. This is not very informative. Instead, let's add another boolean field named "compressed" in case JSON output mode is specified. This is achieved by utilizi

[PATCH 2/3] qemu-img: map: report compressed data blocks

2023-06-07 Thread Andrey Drobyshev via
Right now "qemu-img map" reports compressed blocks as containing data but having no host offset. This is not very informative. Instead, let's add another boolean field named "compressed" in case JSON output mode is specified. This is achieved by utilizing new allocation status flag BDRV_BLOCK_CO