Re: [Qemu-devel] [PATCH 1/2] NBD proto: add WRITE_ZEROES extension

2016-03-24 Thread Pavel Borzenkov
On Wed, Mar 23, 2016 at 09:14:10AM -0600, Eric Blake wrote: > On 03/23/2016 08:16 AM, Denis V. Lunev wrote: > > From: Pavel Borzenkov > > > > There exist some cases when a client knows that the data it is going to > > write is all zeroes. Such cases include mirroring or backing up a device > > im

Re: [Qemu-devel] [PATCH 1/2] NBD proto: add WRITE_ZEROES extension

2016-03-23 Thread Eric Blake
On 03/23/2016 08:16 AM, Denis V. Lunev wrote: > From: Pavel Borzenkov > > There exist some cases when a client knows that the data it is going to > write is all zeroes. Such cases include mirroring or backing up a device > implemented by a sparse file. > > With current NBD command set, the clien

[Qemu-devel] [PATCH 1/2] NBD proto: add WRITE_ZEROES extension

2016-03-23 Thread Denis V. Lunev
From: Pavel Borzenkov There exist some cases when a client knows that the data it is going to write is all zeroes. Such cases include mirroring or backing up a device implemented by a sparse file. With current NBD command set, the client has to issue NBD_CMD_WRITE command with zeroed payload and