While resolving a qemu NBD client error reported by nbdkit, I found
another client oddity by code inspection, in relation to what the
protocol states about simple errors to NBD_CMD_BLOCK_STATUS vs. what
our client enforced. It turns out that nbdkit didn't actually provoke
this case, but since I was able to provoke it with a 2-line patch to
qemu-nbd, it's worth fixing. And Vladimir's insistence that I describe
the fix accurately means that I actually found two separate things to
fix.
Since v1:
split into two patches
better documentation of what is being changed
Eric Blake (2):
nbd: Don't lose server's error to NBD_CMD_BLOCK_STATUS
nbd: Permit simple error to NBD_CMD_BLOCK_STATUS
block/nbd-client.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
--
2.20.1