Re: [PATCH v7 10/10] qcow2: Forward ZERO_WRITE flag for full preallocation

2020-04-24 Thread Vladimir Sementsov-Ogievskiy
24.04.2020 17:27, Kevin Wolf wrote: The BDRV_REQ_ZERO_WRITE is currently implemented in a way that first the image is possibly preallocated and then the zero flag is added to all clusters. This means that a copy-on-write operation may be needed when writing to these clusters, despite having used

Re: [PATCH v7 10/10] qcow2: Forward ZERO_WRITE flag for full preallocation

2020-04-24 Thread Max Reitz
On 24.04.20 16:27, Kevin Wolf wrote: > The BDRV_REQ_ZERO_WRITE is currently implemented in a way that first the > image is possibly preallocated and then the zero flag is added to all > clusters. This means that a copy-on-write operation may be needed when > writing to these clusters, despite havin

[PATCH v7 10/10] qcow2: Forward ZERO_WRITE flag for full preallocation

2020-04-24 Thread Kevin Wolf
The BDRV_REQ_ZERO_WRITE is currently implemented in a way that first the image is possibly preallocated and then the zero flag is added to all clusters. This means that a copy-on-write operation may be needed when writing to these clusters, despite having used preallocation, negating one of the maj