On 05/30/2017 09:30 AM, Vladimir Sementsov-Ogievskiy wrote: > Return EPIPE in case of QIO_CHANNEL_ERR_EPIPE, we will need it to > improve error path in nbd server. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > nbd/common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I agree with Daniel's assessment that we probably aren't doing things right in the previous patch, and therefore probably don't need this one. > > diff --git a/nbd/common.c b/nbd/common.c > index e520aae741..88e0297fb2 100644 > --- a/nbd/common.c > +++ b/nbd/common.c > @@ -52,7 +52,7 @@ ssize_t nbd_wr_syncv(QIOChannel *ioc, > continue; > } > if (len < 0) { > - done = -EIO; > + done = len == QIO_CHANNEL_ERR_EPIPE ? -EPIPE : -EIO; > goto cleanup; > } > > -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org