summaryrefslogtreecommitdiffstats
path: root/include/block/nbd.h
diff options
context:
space:
mode:
authorEric Blake2016-07-15 20:32:03 +0200
committerStefan Hajnoczi2016-07-20 15:11:54 +0200
commit1e2a77a851b3369799272c8e77c07995a1a2e579 (patch)
treebee7bd5e7861a104c6b787997a333be0d660eef2 /include/block/nbd.h
parentnbd: Rely on block layer to break up large requests (diff)
downloadqemu-1e2a77a851b3369799272c8e77c07995a1a2e579.tar.gz
qemu-1e2a77a851b3369799272c8e77c07995a1a2e579.tar.xz
qemu-1e2a77a851b3369799272c8e77c07995a1a2e579.zip
nbd: Drop unused offset parameter
Now that NBD relies on the block layer to fragment things, we no longer need to track an offset argument for which fragment of a request we are actually servicing. While at it, use true and false instead of 0 and 1 for a bool parameter. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1468607524-19021-6-git-send-email-eblake@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block/nbd.h')
-rw-r--r--include/block/nbd.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h
index eeda3ebdf7..503f514e85 100644
--- a/include/block/nbd.h
+++ b/include/block/nbd.h
@@ -89,7 +89,6 @@ enum {
ssize_t nbd_wr_syncv(QIOChannel *ioc,
struct iovec *iov,
size_t niov,
- size_t offset,
size_t length,
bool do_read);
int nbd_receive_negotiate(QIOChannel *ioc, const char *name, uint32_t *flags,