block/nbd-client: split channel errors from export errors
commit7f86068dc1aceec8f6151a3a713e57e680f73b45
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 1 Feb 2019 13:01:33 +0000 (1 16:01 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 4 Feb 2019 21:11:27 +0000 (4 15:11 -0600)
tree33d318e9ebe4b073f737e3c11d83e05a796696af
parente6798f06a67a25def45a6636259de38cc38f1414
block/nbd-client: split channel errors from export errors

To implement nbd reconnect in further patches, we need to distinguish
error codes, returned by nbd server, from channel errors, to reconnect
only in the latter case.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190201130138.94525-2-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/nbd-client.c