This patch set adds two new experimental extensions to the NBD protocol: - WRITE_ZEROES, which describes a command for efficient zeroing of block device (or a part of it) without unneeded data transfer; - GET_LBA_STATUS, which describes a command for quering block allocation state and block dirtiness status.
These commands provides minimal set of operations with block device sparness and are very useful for mirroring and backing up of QEMU block device. Signed-off-by: Pavel Borzenkov <pborzen...@virtuozzo.com> Signed-off-by: Denis V. Lunev <d...@openvz.org> CC: Roman Kagan <rka...@virtuozzo.com> CC: Wouter Verhelst <w...@uter.be> CC: Paolo Bonzini <pbonz...@redhat.com> CC: Kevin Wolf <kw...@redhat.com> CC: Stefan Hajnoczi <stefa...@redhat.com> Pavel Borzenkov (2): NBD proto: add WRITE_ZEROES extension NBD proto: add GET_LBA_STATUS extension doc/proto.md | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) -- 2.1.4