Skip to content

NBD server refactoring before BLOCK_STATUS

Eric Blake qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest6 patches 10 repliesIn review

Changes in v2 from the cover letter

- original patch 4/5 now in a pull request
- replace original 2-3/5 with a single patch, giving more useful semantics to nbd_opt_drop/nbd_opt_read
- add a couple of other easy fixes while touching the file

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6nbd/server: Hoist nbd_reject_length() earliernbd/server.c+28 -281 reply
2/6nbd/server: refactor negotiation functions parametersnbd/server.c+84 -844 replies
3/6nbd/server: Better error for NBD_OPT_EXPORT_NAME failurenbd/server.c+1 -11 reply
4/6nbd/server: Add va_list form of nbd_negotiate_send_rep_err()nbd/server.c+18 -62 replies
5/6nbd/server: Add helper functions for parsing option payloadnbd/server.c+63 -602 replies
6/6nbd/server: structurize option reply sendingnbd/server.c+13 -270 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchEric BlakeVladimir Sementsov-Ogievskiy
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/6] NBD server refactoring before BLOCK_STATUS

This is my promised revision of Vladimir's v1 posted here:
https://lists.gnu.org/archive/html/qemu-devel/2017-11/msg04119.html

Sorry for my delay; it was due in part to an embargo while dealing with 2 bounds-check CVEs in the NBD code that I discovered while reviewing his v1 (fixed in time for 2.11), then waiting for the 2.12 tree to reopen, coupled with my holiday break. I'm hoping we can get actual BLOCK_STATUS code reviewed and applied much faster than this preliminary series has gone.

Based-on: <[email protected]>

Since v1:
- original patch 4/5 now in a pull request
- replace original 2-3/5 with a single patch, giving more useful semantics to nbd_opt_drop/nbd_opt_read
- add a couple of other easy fixes while touching the file

Eric Blake (4):
nbd/server: Hoist nbd_reject_length() earlier nbd/server: Better error for NBD_OPT_EXPORT_NAME failure nbd/server: Add va_list form of nbd_negotiate_send_rep_err() nbd/server: Add helper functions for parsing option payload

Vladimir Sementsov-Ogievskiy (2):
nbd/server: refactor negotiation functions parameters nbd/server: structurize option reply sending

 nbd/server.c | 341 ++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 171 insertions(+), 170 deletions(-)
Signature · 1 line
2.14.3