nbd/client: Plumb errp through nbd_receive_replies
authorEric Blake <eblake@redhat.com>
Mon, 25 Sep 2023 19:22:36 +0000 (14:22 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 5 Oct 2023 16:02:08 +0000 (11:02 -0500)
commited6c996c673e3d64be1f060abc3a6999e007dae2
treec88dfa8cfacf7903ac7981b699bb3f05c749c952
parent9c1d26143764dc53c19d872de4f8a9f820e05177
nbd/client: Plumb errp through nbd_receive_replies

Instead of ignoring the low-level error just to refabricate our own
message to pass to the caller, we can just plumb the caller's errp
down to the low level.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-ID: <20230925192229.3186470-20-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
block/nbd.c