]> git.proxmox.com Git - mirror_qemu.git/commit
nbd/server: introduce NBD_CMD_CACHE
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 13 Apr 2018 14:31:56 +0000 (17:31 +0300)
committerEric Blake <eblake@redhat.com>
Thu, 21 Jun 2018 14:41:39 +0000 (09:41 -0500)
commitbc37b06a5cde24fb24c2a2cc44dd86756034ba9d
tree9d3f3a1819a76c79d048858072ab3d0ce66be975
parent3229a835a3c574a8ebc605e007785c4e01c61623
nbd/server: introduce NBD_CMD_CACHE

Handle nbd CACHE command. Just do read, without sending read data back.
Cache mechanism should be done by exported node driver chain.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20180413143156.11409-1-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: fix two missing case labels in switch statements]
Signed-off-by: Eric Blake <eblake@redhat.com>
include/block/nbd.h
nbd/common.c
nbd/server.c