Re: [Qemu-block] [PATCH] doc: Preallocation does not require writing zeroes

2019-08-15 Thread Max Reitz
On 11.07.19 15:29, Max Reitz wrote: > When preallocating an encrypted qcow2 image, it just lets the protocol > driver write data and then does not mark the clusters as zero. > Therefore, reading this image will yield effectively random data. > > As such, we have not fulfilled the promise of

Re: [Qemu-block] [PATCH] doc: Preallocation does not require writing zeroes

2019-07-15 Thread Stefano Garzarella
On Fri, Jul 12, 2019 at 08:33:14PM +0200, Max Reitz wrote: > On 12.07.19 12:27, Stefano Garzarella wrote: > > On Thu, Jul 11, 2019 at 03:29:35PM +0200, Max Reitz wrote: > >> When preallocating an encrypted qcow2 image, it just lets the protocol > >> driver write data and then does not mark the

Re: [Qemu-block] [PATCH] doc: Preallocation does not require writing zeroes

2019-07-12 Thread Max Reitz
On 12.07.19 12:27, Stefano Garzarella wrote: > On Thu, Jul 11, 2019 at 03:29:35PM +0200, Max Reitz wrote: >> When preallocating an encrypted qcow2 image, it just lets the protocol >> driver write data and then does not mark the clusters as zero. >> Therefore, reading this image will yield

Re: [Qemu-block] [PATCH] doc: Preallocation does not require writing zeroes

2019-07-12 Thread Stefano Garzarella
On Thu, Jul 11, 2019 at 03:29:35PM +0200, Max Reitz wrote: > When preallocating an encrypted qcow2 image, it just lets the protocol > driver write data and then does not mark the clusters as zero. > Therefore, reading this image will yield effectively random data. > > As such, we have not

Re: [Qemu-block] [PATCH] doc: Preallocation does not require writing zeroes

2019-07-11 Thread Maxim Levitsky
On Thu, 2019-07-11 at 15:29 +0200, Max Reitz wrote: > When preallocating an encrypted qcow2 image, it just lets the protocol > driver write data and then does not mark the clusters as zero. > Therefore, reading this image will yield effectively random data. > > As such, we have not fulfilled the

Re: [Qemu-block] [PATCH] doc: Preallocation does not require writing zeroes

2019-07-11 Thread Eric Blake
On 7/11/19 8:29 AM, Max Reitz wrote: > When preallocating an encrypted qcow2 image, it just lets the protocol > driver write data and then does not mark the clusters as zero. > Therefore, reading this image will yield effectively random data. > > As such, we have not fulfilled the promise of

[Qemu-block] [PATCH] doc: Preallocation does not require writing zeroes

2019-07-11 Thread Max Reitz
When preallocating an encrypted qcow2 image, it just lets the protocol driver write data and then does not mark the clusters as zero. Therefore, reading this image will yield effectively random data. As such, we have not fulfilled the promise of always writing zeroes when preallocating an image