Re: [Qemu-devel] [PATCH v4 2/6] block: add .bdrv_co_write_zeroes() interface

2012-02-06 Thread Stefan Hajnoczi
On Mon, Feb 6, 2012 at 4:00 PM, Kevin Wolf wrote: > Am 06.02.2012 16:50, schrieb Stefan Hajnoczi: >> On Tue, Jan 24, 2012 at 3:16 PM, Kevin Wolf wrote: +/* + * Efficiently zero a region of the disk image.  Note that this is a regular + * I/O request like read or write and sho

Re: [Qemu-devel] [PATCH v4 2/6] block: add .bdrv_co_write_zeroes() interface

2012-02-06 Thread Kevin Wolf
Am 06.02.2012 16:50, schrieb Stefan Hajnoczi: > On Tue, Jan 24, 2012 at 3:16 PM, Kevin Wolf wrote: >>> +/* >>> + * Efficiently zero a region of the disk image. Note that this is a >>> regular >>> + * I/O request like read or write and should have a reasonable size. This >>> + * function is not

Re: [Qemu-devel] [PATCH v4 2/6] block: add .bdrv_co_write_zeroes() interface

2012-02-06 Thread Stefan Hajnoczi
On Tue, Jan 24, 2012 at 3:16 PM, Kevin Wolf wrote: >> +/* >> + * Efficiently zero a region of the disk image.  Note that this is a regular >> + * I/O request like read or write and should have a reasonable size.  This >> + * function is not suitable for zeroing the entire image in a single >> req

Re: [Qemu-devel] [PATCH v4 2/6] block: add .bdrv_co_write_zeroes() interface

2012-01-24 Thread Kevin Wolf
Am 18.01.2012 15:59, schrieb Stefan Hajnoczi: > The ability to zero regions of an image file is a useful primitive for > higher-level features such as image streaming or zero write detection. > > Image formats may support an optimized metadata representation instead > of writing zeroes into the im

[Qemu-devel] [PATCH v4 2/6] block: add .bdrv_co_write_zeroes() interface

2012-01-18 Thread Stefan Hajnoczi
The ability to zero regions of an image file is a useful primitive for higher-level features such as image streaming or zero write detection. Image formats may support an optimized metadata representation instead of writing zeroes into the image file. This allows zero writes to be potentially fas