Implement NBD_OPT_GO, block size advertisement
Status from this message: Queued, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest9 patches 18 repliesApplied
- v48 patches 10 repliesSuperseded
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | nbd: Create struct for tracking export infoblock/ block/ block/ +3 more | +47 | 4 replies | |
| 2/9 | nbd: Don't bother tracing an NBD_OPT_ABORT response failurenbd/ | +4 | 2 replies | |
| 3/9 | nbd: Expose and debug more NBD constantsinclude/ nbd/ nbd/ +3 more | +174 | 2 replies | |
| 4/9 | nbd: Simplify trace of client flags in negotiationnbd/ nbd/ | +3 | 1 reply | |
| 5/9 | nbd: Refactor reply to NBD_OPT_EXPORT_NAMEnbd/ | +28 | 1 reply | |
| 6/9 | nbd: Implement NBD_OPT_GO on servernbd/ nbd/ | +179 | 1 reply | |
| 7/9 | nbd: Implement NBD_OPT_GO on clientnbd/ nbd/ nbd/ | +130 | 6 replies | |
| 8/9 | nbd: Implement NBD_INFO_BLOCK_SIZE on servernbd/ nbd/ | +45 | 0 replies | |
| 9/9 | nbd: Implement NBD_INFO_BLOCK_SIZE on clientblock/ block/ include/ +3 more | +92 | 0 replies |
Reviews trailers per patch
4 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Vladimir Sementsov-Ogievskiy |
|---|---|
| 1/9 | R-b |
| 2/9 | R-b |
| 3/9 | R-b |
| 4/9 | R-b |
| 5/9 | |
| 6/9 | |
| 7/9 | |
| 8/9 | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v5 0/9] Implement NBD_OPT_GO, block size advertisement
The NBD protocol has now finalized the extension that fixes several shortcomings with NBD_OPT_EXPORT_NAME (namely, no error reporting, no way for the server to advertise block sizes to the client):
https://github.com/NetworkBlockDevice/nbd/blob/extension-info/doc/proto.md
This sort of overlaps with the work Vladimir is proposing for implementing NBD_CMD_BLOCK_STATUS, but initial versions of these patches have been on the list for over a year now (see patches 37-44):
https://lists.gnu.org/archive/html/qemu-devel/2016-04/msg03526.html
v4 was here:
https://lists.gnu.org/archive/html/qemu-devel/2017-02/msg04528.html
Differences since then (if it is even worth comparing) include rebasing on top of Vladimir's cleanups and final tweaks to match the upstream NBD protocol that was finally promoted from experimental.
Depends on my NBD staging tree (currently Vladimir's v3 nbd refactoring):
http://repo.or.cz/qemu/ericb.git/shortlog/refs/heads/nbd
https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg01805.html
001/9:[0047] [FC] 'nbd: Create struct for tracking export info' 002/9:[down] 'nbd: Don't bother tracing an NBD_OPT_ABORT response failure' 003/9:[0108] [FC] 'nbd: Expose and debug more NBD constants' 004/9:[down] 'nbd: Simplify trace of client flags in negotiation' 005/9:[down] 'nbd: Refactor reply to NBD_OPT_EXPORT_NAME' 006/9:[0146] [FC] 'nbd: Implement NBD_OPT_GO on server' 007/9:[0041] [FC] 'nbd: Implement NBD_OPT_GO on client' 008/9:[0014] [FC] 'nbd: Implement NBD_INFO_BLOCK_SIZE on server' 009/9:[0050] [FC] 'nbd: Implement NBD_INFO_BLOCK_SIZE on client'
Eric Blake (9):
nbd: Create struct for tracking export info
nbd: Don't bother tracing an NBD_OPT_ABORT response failure
nbd: Expose and debug more NBD constants
nbd: Simplify trace of client flags in negotiation
nbd: Refactor reply to NBD_OPT_EXPORT_NAME
nbd: Implement NBD_OPT_GO on server
nbd: Implement NBD_OPT_GO on client
nbd: Implement NBD_INFO_BLOCK_SIZE on server
nbd: Implement NBD_INFO_BLOCK_SIZE on client
block/nbd-client.h | 3 +- include/block/nbd.h | 56 +++++++--- nbd/nbd-internal.h | 13 +-- block/nbd-client.c | 22 ++-- block/nbd.c | 16 ++- nbd/client.c | 283 ++++++++++++++++++++++++++++++++++++++++-------- nbd/common.c | 92 ++++++++++++++++ nbd/server.c | 304 ++++++++++++++++++++++++++++++++++++++++++++-------- qemu-nbd.c | 10 +- nbd/trace-events | 24 +++-- 10 files changed, 685 insertions(+), 138 deletions(-)
Signature · 1 line
2.9.4