Re: [PATCH 6/9] ssh: Support BDRV_REQ_ZERO_WRITE for truncate

2020-04-29 Thread Richard W.M. Jones
On Tue, Apr 28, 2020 at 03:29:02PM -0500, Eric Blake wrote: > Our .bdrv_has_zero_init_truncate can detect when the remote side > always zero fills; we can reuse that same knowledge to implement > BDRV_REQ_ZERO_WRITE by ignoring it when the server gives it to us for > free. > > Signed-off-by: Eric

[PATCH 6/9] ssh: Support BDRV_REQ_ZERO_WRITE for truncate

2020-04-28 Thread Eric Blake
Our .bdrv_has_zero_init_truncate can detect when the remote side always zero fills; we can reuse that same knowledge to implement BDRV_REQ_ZERO_WRITE by ignoring it when the server gives it to us for free. Signed-off-by: Eric Blake --- block/ssh.c | 4 1 file changed, 4 insertions(+) diff