mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
f5d406fe86
commit
f260956536
4 changed files with 11 additions and 12 deletions
|
@ -108,7 +108,7 @@ static inline ssize_t read_sync_eof(QIOChannel *ioc, void *buffer, size_t size)
|
|||
* our request/reply. Synchronization is done with recv_coroutine, so
|
||||
* that this is coroutine-safe.
|
||||
*/
|
||||
return nbd_wr_syncv(ioc, &iov, 1, size, true);
|
||||
return nbd_wr_syncv(ioc, &iov, 1, size, true, NULL);
|
||||
}
|
||||
|
||||
/* read_sync
|
||||
|
@ -132,7 +132,7 @@ static inline int write_sync(QIOChannel *ioc, const void *buffer, size_t size)
|
|||
{
|
||||
struct iovec iov = { .iov_base = (void *) buffer, .iov_len = size };
|
||||
|
||||
ssize_t ret = nbd_wr_syncv(ioc, &iov, 1, size, false);
|
||||
ssize_t ret = nbd_wr_syncv(ioc, &iov, 1, size, false, NULL);
|
||||
|
||||
assert(ret < 0 || ret == size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue