OSDN Git Service

nbd: Implement server use of NBD FAST_ZERO
authorEric Blake <eblake@redhat.com>
Fri, 23 Aug 2019 14:37:25 +0000 (09:37 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 5 Sep 2019 21:04:53 +0000 (16:04 -0500)
commitb491dbb7f8e09ef864770c205a3b5bce6c5c1881
tree8d9bdb3c13e3e7849c739a2faec6490f522394cb
parentf061656cc355161f9984237298c45762ce5187d3
nbd: Implement server use of NBD FAST_ZERO

The server side is fairly straightforward: we can always advertise
support for detection of fast zero, and implement it by mapping the
request to the block layer BDRV_REQ_NO_FALLBACK.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190823143726.27062-5-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
[eblake: update iotests 223, 233]
nbd/server.c
tests/qemu-iotests/223.out
tests/qemu-iotests/233.out