mbox series

[for-4.0,v2,0/2] nbd: simple errors to BLOCK_STATUS

Message ID 20190325190104.30213-1-eblake@redhat.com (mailing list archive)
Headers show
Series nbd: simple errors to BLOCK_STATUS | expand

Message

Eric Blake March 25, 2019, 7:01 p.m. UTC
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(-)