summaryrefslogtreecommitdiffstats
path: root/include/block/nbd.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2017-05-16 11:45:31 +0200
committerPaolo Bonzini2017-06-06 20:18:36 +0200
commitf2609565369429bc1619d106b200106dba29290e (patch)
tree3ba3a72711e31bccb7812104ee8e73329532c02c /include/block/nbd.h
parentnbd: read_sync and friends: return 0 on success (diff)
downloadqemu-f2609565369429bc1619d106b200106dba29290e.tar.gz
qemu-f2609565369429bc1619d106b200106dba29290e.tar.xz
qemu-f2609565369429bc1619d106b200106dba29290e.zip
nbd: add errp parameter to nbd_wr_syncv()
Will be used in following patch to provide actual error message in some cases. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20170516094533.6160-4-vsementsov@virtuozzo.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/block/nbd.h')
-rw-r--r--include/block/nbd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h
index 0ed077502e..9d385ea564 100644
--- a/include/block/nbd.h
+++ b/include/block/nbd.h
@@ -127,7 +127,8 @@ ssize_t nbd_wr_syncv(QIOChannel *ioc,
struct iovec *iov,
size_t niov,
size_t length,
- bool do_read);
+ bool do_read,
+ Error **errp);
int nbd_receive_negotiate(QIOChannel *ioc, const char *name, uint16_t *flags,
QCryptoTLSCreds *tlscreds, const char *hostname,
QIOChannel **outioc,