Skip to content

nbd minimal structured read

Eric Blake qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest12 patches 13 repliesIn review
  2. v511 patches 18 repliesSuperseded
  3. v48 patches 22 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12nbd: Include error names in trace messagesnbd/client.c nbd/common.c nbd/nbd-internal.h +2 more+30 -40 replies
2/12nbd: Move nbd_errno_to_system_errno() to public headerinclude/block/nbd.h nbd/client.c nbd/common.c +2 more+50 -450 replies
3/12nbd: Expose constants and structs for structured readinclude/block/nbd.h nbd/common.c nbd/nbd-internal.h +1 more+71 -10 replies
4/12nbd/server: Report error for write to read-only exportnbd/server.c+2 -10 replies
5/12nbd/server: Simplify nbd_negotiate_options loopnbd/server.c+3 -151 reply
6/12nbd/server: Refactor zero-length option checknbd/server.c+46 -283 replies
7/12nbd: Minimal structured read for servernbd/server.c nbd/trace-events+99 -101 reply
8/12nbd/server: Include human-readable message in structured errorsnbd/server.c nbd/trace-events+14 -80 replies
9/12nbd/client: refactor nbd_receive_starttlsnbd/client.c nbd/trace-events+49 -251 reply
10/12nbd/client: prepare nbd_receive_reply for structured replyblock/nbd-client.c include/block/nbd.h nbd/client.c +1 more+113 -321 reply
11/12nbd: Move nbd_read() to common headerinclude/block/nbd.h nbd/nbd-internal.h+10 -90 replies
12/12nbd: Minimal structured read for clientblock/nbd-client.c block/nbd-client.h include/block/nbd.h +3 more+498 -331 reply

Reviews trailers per patch

8 of 12 patches have a Reviewed-by or Acked-by.

PatchVladimir Sementsov-Ogievskiy
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12
8/12R-b
9/12
10/12
11/12R-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [Qemu-devel] [PATCH v6 00/12] nbd minimal structured read

I've incorporated a few more tweaks since v5, addressing the various bugs I pointed out there:
https://lists.gnu.org/archive/html/qemu-devel/2017-10/msg04817.html
- make sure iotests pass
- split a large patch
- consistently use absolute offsets
- clean up awkward logic in handling option requests

I plan to send a pull request before Tuesday's freeze deadline; with a plan to do lots of interoperability testing (including validation of behavior against a server that sends more than one chunk for a read), and with any resulting bug fixes trying to land as soon as possible during the freeze.

I'm also a bit disappointed that iotest 83 is more verbose. I'll post a follow RFC that undoes the verbosity regression, as evidence that we should probably be tracing things instead; such a cleanup would count as a bug fix, even if my pull request includes this series as-is.

001/12:[----] [--] 'nbd: Include error names in trace messages' 002/12:[----] [--] 'nbd: Move nbd_errno_to_system_errno() to public header' 003/12:[----] [--] 'nbd: Expose constants and structs for structured read' 004/12:[----] [--] 'nbd/server: Report error for write to read-only export' 005/12:[down] 'nbd/server: Simplify nbd_negotiate_options loop' 006/12:[0066] [FC] 'nbd/server: Refactor zero-length option check' 007/12:[0007] [FC] 'nbd: Minimal structured read for server' 008/12:[----] [--] 'nbd/server: Include human-readable message in structured errors' 009/12:[0004] [FC] 'nbd/client: refactor nbd_receive_starttls' 010/12:[----] [--] 'nbd/client: prepare nbd_receive_reply for structured reply' 011/12:[----] [--] 'nbd: Move nbd_read() to common header' 012/12:[0055] [FC] 'nbd: Minimal structured read for client'

Eric Blake (8):
nbd: Include error names in trace messages
nbd: Move nbd_errno_to_system_errno() to public header
nbd: Expose constants and structs for structured read nbd/server: Report error for write to read-only export nbd/server: Simplify nbd_negotiate_options loop nbd/server: Refactor zero-length option check nbd/server: Include human-readable message in structured errors
nbd: Move nbd_read() to common header

Vladimir Sementsov-Ogievskiy (4):
nbd: Minimal structured read for server nbd/client: refactor nbd_receive_starttls nbd/client: prepare nbd_receive_reply for structured reply
nbd: Minimal structured read for client

 block/nbd-client.h         |   1 +
 include/block/nbd.h        | 106 +++++++++-
 nbd/nbd-internal.h         |  23 +--
 block/nbd-client.c         | 492 ++++++++++++++++++++++++++++++++++++++++++---
 nbd/client.c               | 217 +++++++++++++-------
 nbd/common.c               |  84 ++++++++
 nbd/server.c               | 209 ++++++++++++++-----
 nbd/trace-events           |  15 +-
 tests/qemu-iotests/083.out |  15 ++
 9 files changed, 968 insertions(+), 194 deletions(-)
Signature · 1 line
2.13.6