Skip to content

nbd export qmp interface

Vladimir Sementsov-Ogievskiy qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 2 repliesIn review
  2. v2 posting 2/26 patches 7 repliesSuperseded
  3. v2 posting 1/26 patches 36 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches6 repliesSuperseded

Changes in v3 from the cover letter

hmp patch deleted
02: tweak commit message and comments
tweak error message
05: use unix socket instead of tcp (more common practice in iotests,
and we do not need port)
rebase on new error message in 02

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5qapi: add name parameter to nbd-server-addblockdev-nbd.c hmp.c qapi/block.json+19 -90 replies
2/5qapi: add nbd-server-removeblockdev-nbd.c include/block/nbd.h nbd/server.c +1 more+86 -01 reply
3/5iotest 147: add cases to test new @name parameter of nbd-server-addtests/qemu-iotests/147 tests/qemu-iotests/147.out+57 -150 replies
4/5iotests: implement QemuIoInteractive classtests/qemu-iotests/iotests.py+38 -00 replies
5/5iotest 201: new test for qmp nbd-server-removetests/qemu-iotests/201 tests/qemu-iotests/201.out tests/qemu-iotests/group+162 -01 reply

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/5R-b
2/5R-b
3/5R-b
4/5
5/5

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/5] nbd export qmp interface

v3:
hmp patch deleted
02: tweak commit message and comments
tweak error message
05: use unix socket instead of tcp (more common practice in iotests,
and we do not need port)
rebase on new error message in 02

v2:
01: tweak comment
add Eric's r-b
02: new patch
03: rewritten, to move form 'bool force' flag to 'enum mode' parameter 04: add Eric's r-b
05: improve commit message
tweak comment
06: rebase on 03 changes
make PEP8 happy
some other tweaks
I've left nbd_port variable hard-set to 10900. I think all such things should be fixed together, and it is simple to change in future nbd_port = '10900'
to
nbd_port = iotests.get_free_port()
if needed.

[Unfortunately, qmp query-nbd-server is not finished yet, coming soon,
but may be after my vocation on the next week]

Vladimir Sementsov-Ogievskiy (5):
qapi: add name parameter to nbd-server-add
qapi: add nbd-server-remove
iotest 147: add cases to test new @name parameter of nbd-server-add
iotests: implement QemuIoInteractive class
iotest 201: new test for qmp nbd-server-remove

 qapi/block.json               |  50 +++++++++++++-
 include/block/nbd.h           |   1 +
 blockdev-nbd.c                |  38 ++++++++--
 hmp.c                         |   5 +-
 nbd/server.c                  |  20 ++++++
 tests/qemu-iotests/147        |  68 ++++++++++++++----
 tests/qemu-iotests/147.out    |   4 +-
 tests/qemu-iotests/201        | 156 ++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/201.out    |   5 ++
 tests/qemu-iotests/group      |   1 +
 tests/qemu-iotests/iotests.py |  38 ++++++++++
 11 files changed, 362 insertions(+), 24 deletions(-)
 create mode 100644 tests/qemu-iotests/201
 create mode 100644 tests/qemu-iotests/201.out
Signature · 1 line
2.11.1