Skip to content

libnbd patches for NBD_OPT_EXTENDED_HEADERS

Eric Blake qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13golang: Simplify nbd_block_status callback array copygenerator/GoLang.ml+9 -60 replies
2/13block_status: Refactor array storagegenerator/state_machine.ml generator/states-reply-structured.c lib/internal.h+51 -190 replies
3/13protocol: Add definitions for extended headerslib/nbd-protocol.h+51 -100 replies
4/13protocol: Prepare to send 64-bit requestsgenerator/states-issue-command.c generator/states-reply-structured.c lib/internal.h +1 more+34 -210 replies
5/13protocol: Prepare to receive 64-bit repliesgenerator/states-reply-structured.c generator/states-reply.c lib/internal.h+68 -300 replies
6/13protocol: Accept 64-bit holes during preadgenerator/states-reply-structured.c lib/internal.h+37 -50 replies
7/13generator: Add struct nbd_extent in prep for 64-bit extentsgenerator/API.ml generator/API.mli generator/C.ml +6 more+130 -150 replies
8/13block_status: Track 64-bit extents internallygenerator/states-reply-structured.c lib/handle.c lib/internal.h +1 more+85 -160 replies
9/13block_status: Accept 64-bit extents during block statusgenerator/states-reply-structured.c lib/internal.h+60 -160 replies
10/13api: Add [aio_]nbd_block_status_64generator/API.ml generator/OCaml.ml generator/Python.ml +7 more+503 -370 replies
11/13api: Add three functions for controlling extended headersgenerator/API.ml golang/libnbd_110_defaults_test.go golang/libnbd_120_set_non_defaults_test.go +6 more+137 -120 replies
12/13generator: Actually request extended headersgenerator/Makefile.am generator/state_machine.ml generator/states-newstyle-opt-extended-headers.c +1 more+138 -60 replies
13/13interop: Add test of 64-bit block status.gitignore interop/Makefile.am interop/large-status.c +1 more+242 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [libnbd PATCH 00/13] libnbd patches for NBD_OPT_EXTENDED_HEADERS

Available here: https://repo.or.cz/libnbd/ericb.git/shortlog/refs/tags/exthdr-v1

I also want to do followup patches to teach 'nbdinfo --map' and 'nbdcopy' to utilize 64-bit extents.

Eric Blake (13):
golang: Simplify nbd_block_status callback array copy
block_status: Refactor array storage
protocol: Add definitions for extended headers
protocol: Prepare to send 64-bit requests
protocol: Prepare to receive 64-bit replies
protocol: Accept 64-bit holes during pread
generator: Add struct nbd_extent in prep for 64-bit extents
block_status: Track 64-bit extents internally
block_status: Accept 64-bit extents during block status
api: Add [aio_]nbd_block_status_64
api: Add three functions for controlling extended headers
generator: Actually request extended headers
interop: Add test of 64-bit block status

 lib/internal.h                                |  31 ++-
 lib/nbd-protocol.h                            |  61 ++++-
 generator/API.ml                              | 237 ++++++++++++++++--
 generator/API.mli                             |   3 +-
 generator/C.ml                                |  24 +-
 generator/GoLang.ml                           |  35 ++-
 generator/Makefile.am                         |   3 +-
 generator/OCaml.ml                            |  20 +-
 generator/Python.ml                           |  29 ++-
 generator/state_machine.ml                    |  52 +++-
 generator/states-issue-command.c              |  31 ++-
 .../states-newstyle-opt-extended-headers.c    |  90 +++++++
 generator/states-newstyle-opt-starttls.c      |  10 +-
 generator/states-reply-structured.c           | 220 ++++++++++++----
 generator/states-reply.c                      |  31 ++-
 lib/handle.c                                  |  27 +-
 lib/rw.c                                      | 105 +++++++-
 python/t/110-defaults.py                      |   3 +-
 python/t/120-set-non-defaults.py              |   4 +-
 python/t/465-block-status-64.py               |  56 +++++
 ocaml/helpers.c                               |  22 +-
 ocaml/nbd-c.h                                 |   3 +-
 ocaml/tests/Makefile.am                       |   5 +-
 ocaml/tests/test_110_defaults.ml              |   4 +-
 ocaml/tests/test_120_set_non_defaults.ml      |   5 +-
 ocaml/tests/test_465_block_status_64.ml       |  58 +++++
 tests/meta-base-allocation.c                  | 111 +++++++-
 interop/Makefile.am                           |   6 +
 interop/large-status.c                        | 186 ++++++++++++++
 interop/large-status.sh                       |  49 ++++
 .gitignore                                    |   1 +
 golang/Makefile.am                            |   3 +-
 golang/handle.go                              |   6 +
 golang/libnbd_110_defaults_test.go            |   8 +
 golang/libnbd_120_set_non_defaults_test.go    |  12 +
 golang/libnbd_465_block_status_64_test.go     | 119 +++++++++
 36 files changed, 1511 insertions(+), 159 deletions(-)
 create mode 100644 generator/states-newstyle-opt-extended-headers.c
 create mode 100644 python/t/465-block-status-64.py
 create mode 100644 ocaml/tests/test_465_block_status_64.ml
 create mode 100644 interop/large-status.c
 create mode 100755 interop/large-status.sh
 create mode 100644 golang/libnbd_465_block_status_64_test.go
Signature · 1 line
2.33.1