summaryrefslogtreecommitdiff
path: root/block/nbd-client.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2017-10-27 12:40:37 +0200
committerEric Blake <eblake@redhat.com>2017-10-30 21:48:41 +0100
commitf140e3000371e67ff4e00df3213e2d576d9c91be (patch)
tree1111920c7dbb774be55932b164ee966ea54f32e5 /block/nbd-client.h
parent56dc682bf5e3a64b64a658c0aeec37570719c929 (diff)
downloadqemu-f140e3000371e67ff4e00df3213e2d576d9c91be.tar.gz
nbd: Minimal structured read for client
Minimal implementation: for structured error only error_report error message. Note that test 83 is now more verbose, because the implementation prints more warnings about unexpected communication errors; perhaps future patches should tone things down by using trace messages instead of traces, but the common case of successful communication is no noisier than before. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20171027104037.8319-13-eblake@redhat.com>
Diffstat (limited to 'block/nbd-client.h')
-rw-r--r--block/nbd-client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/nbd-client.h b/block/nbd-client.h
index b435754b82..612c4c21a0 100644
--- a/block/nbd-client.h
+++ b/block/nbd-client.h
@@ -19,6 +19,7 @@
typedef struct {
Coroutine *coroutine;
+ uint64_t offset; /* original offset of the request */
bool receiving; /* waiting for read_reply_co? */
} NBDClientRequest;