On 7/25/19 5:05 AM, Vladimir Sementsov-Ogievskiy wrote: > This helps to avoid extra io, allocations and memory copying. > We assume here that CMD_CACHE is always used with copy-on-read, as > otherwise it's a noop. > > Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> > --- > nbd/server.c | 43 +++++++++++++++++++++++++++++++++++-------- > 1 file changed, 35 insertions(+), 8 deletions(-)
libnbd is able to test NBD_CMD_CACHE requests, and I've confirmed that behavior looks sane under requests issued that way. I'm wondering if qemu-io should also be able to drive this mode of operation, so that we can give it iotest coverage without depending on libnbd. Reviewed-by: Eric Blake <[email protected]> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
