On 09/13/2013 04:25 AM, Peter Lieven wrote: > this patch adds a call to completely zero out a block device. > the operation is speed up by checking the block status and
s/speed/sped/ > only writing zeroes to the device if they currently do not > return zeroes. optionally the zero writing can be speed up and again > by setting the flag BDRV_REQ_MAY_UNMAP to emulate the zero > write by unmapping if the driver supports it. > > Signed-off-by: Peter Lieven <p...@kamp.de> > --- > block.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ > include/block/block.h | 1 + > 2 files changed, 46 insertions(+) > -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature