Re: [Qemu-devel] [PATCHv3 13/20] block: introduce bdrv_zeroize

2013-10-07 Thread Stefan Hajnoczi
On Tue, Sep 24, 2013 at 03:35:07PM +0200, Peter Lieven wrote: this patch adds a call to completely zero out a block device. the operation is sped up by checking the block status and only writing zeroes to the device if they currently do not return zeroes. optionally the zero writing can be

Re: [Qemu-devel] [PATCHv3 13/20] block: introduce bdrv_zeroize

2013-10-07 Thread Peter Lieven
Am 07.10.2013 um 10:34 schrieb Stefan Hajnoczi stefa...@gmail.com: On Tue, Sep 24, 2013 at 03:35:07PM +0200, Peter Lieven wrote: this patch adds a call to completely zero out a block device. the operation is sped up by checking the block status and only writing zeroes to the device if they

Re: [Qemu-devel] [PATCHv3 13/20] block: introduce bdrv_zeroize

2013-10-02 Thread Eric Blake
On 09/24/2013 07:35 AM, Peter Lieven wrote: this patch adds a call to completely zero out a block device. the operation is sped up by checking the block status and only writing zeroes to the device if they currently do not return zeroes. optionally the zero writing can be sped up by setting

[Qemu-devel] [PATCHv3 13/20] block: introduce bdrv_zeroize

2013-09-24 Thread Peter Lieven
this patch adds a call to completely zero out a block device. the operation is sped up by checking the block status and only writing zeroes to the device if they currently do not return zeroes. optionally the zero writing can be sped up by setting the flag BDRV_REQ_MAY_UNMAP to emulate the zero