On 09/24/2013 07:35 AM, Peter Lieven wrote: > Signed-off-by: Peter Lieven > --- > block.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++---------------- > 1 file changed, 49 insertions(+), 16 deletions(-) > > diff --git a/block.c b/block.c > index ac35cb5..580570a 100644 > --- a/block.c > +++ b/block.c > @@ -2710,32 +2710,65 @@ int coroutine_fn bdrv_co_copy_on_readv(BlockDriverState *bs, > BDRV_REQ_COPY_ON_READ); > } > > + > + if (ret == -ENOTSUP) { > + /* Fall back to bounce buffer if write zeroes is unsupported */ > + iov.iov_len = num * BDRV_SECTOR_SIZE; Why 2 spaces? But that's trivial. Reviewed-by: Eric Blake -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org