protocol: Implement NBD_CMD_WRITE_ZEROES
commit9cbe2e996071182407c64ee5a3e96c09f5b59601
authorEric Blake <eblake@redhat.com>
Fri, 20 Jan 2017 20:16:21 +0000 (20 14:16 -0600)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 21 Jan 2017 14:43:49 +0000 (21 14:43 +0000)
tree31e8b69fb98640242565fe9c43713a6d9a7ae19e
parent19184d3eb6356ae3b14da0fbaa9c9bdc7743a448
protocol: Implement NBD_CMD_WRITE_ZEROES

We always advertise this to the client (for writable exports), even
when the plugin does not have any optimized implementation, because
it allows for more efficient network traffic.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/connections.c
src/protocol.h