diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2018-04-13 17:31:56 +0300 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2018-06-21 09:41:39 -0500 |
commit | bc37b06a5cde24fb24c2a2cc44dd86756034ba9d (patch) | |
tree | 9d3f3a1819a76c79d048858072ab3d0ce66be975 /nbd/common.c | |
parent | 3229a835a3c574a8ebc605e007785c4e01c61623 (diff) | |
download | qemu-bc37b06a5cde24fb24c2a2cc44dd86756034ba9d.zip qemu-bc37b06a5cde24fb24c2a2cc44dd86756034ba9d.tar.gz qemu-bc37b06a5cde24fb24c2a2cc44dd86756034ba9d.tar.bz2 |
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>
Diffstat (limited to 'nbd/common.c')
-rw-r--r-- | nbd/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nbd/common.c b/nbd/common.c index 8c95c1d..41f5ed8 100644 --- a/nbd/common.c +++ b/nbd/common.c @@ -148,6 +148,8 @@ const char *nbd_cmd_lookup(uint16_t cmd) return "flush"; case NBD_CMD_TRIM: return "trim"; + case NBD_CMD_CACHE: + return "cache"; case NBD_CMD_WRITE_ZEROES: return "write zeroes"; case NBD_CMD_BLOCK_STATUS: |