block: Accept node-name in all node level QMP commands
Status from this message: Applied to block-next.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest11 patches 16 repliesApplied
- v411 patches 32 repliesSuperseded
- v311 patches 9 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 11 patches | 1 reply | Superseded |
Changes in v5 from the cover letter
- Sent separate patch "block: Accept any target node for transactional blockdev-backup" and rebased this series on it [Max]
- Check bdrv_is_inserted() in qmp_get_root_bs() [Max]
- Resolved merge conflicts with QAPI boxed type conversion
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | block: Accept node-name for block-streamblock/ blockdev.c include/ +3 more | +45 | 2 replies | |
| 2/11 | block: Accept node-name for block-commitblockdev.c qapi/ qmp-commands.hx | +13 | 2 replies | |
| 3/11 | block: Accept node-name for blockdev-backupblockdev.c qapi/ qmp-commands.hx | +10 | 1 reply | |
| 4/11 | block: Accept node-name for blockdev-mirrorblockdev.c qapi/ qmp-commands.hx | +5 | 1 reply | |
| 5/11 | block: Accept node-name for blockdev-snapshot-delete-internal-syncblockdev.c qapi/ qmp-commands.hx +1 more | +8 | 1 reply | |
| 6/11 | block: Accept node-name for blockdev-snapshot-internal-syncblockdev.c qapi/ qmp-commands.hx +1 more | +11 | 1 reply | |
| 7/11 | block: Accept node-name for change-backing-fileblockdev.c qapi/ qmp-commands.hx | +7 | 1 reply | |
| 8/11 | block: Accept node-name for drive-backupblockdev.c qapi/ qmp-commands.hx +1 more | +14 | 1 reply | |
| 9/11 | block: Accept node-name for drive-mirrorblockdev.c qapi/ qmp-commands.hx +1 more | +11 | 2 replies | |
| 10/11 | nbd-server: Use a separate BlockBackendblock.c blockdev-nbd.c include/ +2 more | +28 | 1 reply | |
| 11/11 | nbd-server: Allow node name for nbd-server-addblockdev-nbd.c qapi/ | +11 | 2 replies |
Reviews trailers per patch
All 11 patches have a Reviewed-by or Acked-by.
| Patch | Eric Blake | Alberto Garcia | Max Reitz |
|---|---|---|---|
| 1/11 | R-b | R-b | |
| 2/11 | R-b | R-b | R-b |
| 3/11 | R-b | R-b | |
| 4/11 | R-b | R-b | R-b |
| 5/11 | R-b | R-b | R-b |
| 6/11 | R-b | R-b | R-b |
| 7/11 | R-b | R-b | R-b |
| 8/11 | R-b | R-b | R-b |
| 9/11 | R-b | R-b | |
| 10/11 | R-b | R-b | |
| 11/11 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [Qemu-devel] [PATCH v5 00/11] block: Accept node-name in all node level QMP commands
As stated in the RFC I sent two weeks ago:
* Node level commands: We need to complete the conversion that makes commands accept node names instead of BlockBackend names. In some places we intentionally allow only BlockBackends because we don't know if the command works in other places than the root. This is okay, but we can accept node names anyway. We just need to check that the node is a root node as expected.
This part of the RFC is implemented by this series.
v5:
- Sent separate patch "block: Accept any target node for transactional blockdev-backup" and rebased this series on it [Max]
- Check bdrv_is_inserted() in qmp_get_root_bs() [Max]
- Resolved merge conflicts with QAPI boxed type conversion
v4:
- Changed the way to decide whether a root-node-only QMP command is allowed on a specific node. Instead of checking that it has a BB on top, the new check is that there is no non-BB parent on top. This allows using unattached nodes.
- Fixed incorrect documentation change for block-commit [Eric]
v3:
- Now with updated documentation
Kevin Wolf (11):
block: Accept node-name for block-stream
block: Accept node-name for block-commit
block: Accept node-name for blockdev-backup
block: Accept node-name for blockdev-mirror
block: Accept node-name for blockdev-snapshot-delete-internal-sync
block: Accept node-name for blockdev-snapshot-internal-sync
block: Accept node-name for change-backing-file
block: Accept node-name for drive-backup
block: Accept node-name for drive-mirror
nbd-server: Use a separate BlockBackend
nbd-server: Allow node name for nbd-server-add
block.c | 2 + block/block-backend.c | 16 ++++ blockdev-nbd.c | 21 ++--- blockdev.c | 197 ++++++++++++++--------------------------- include/block/nbd.h | 3 +- include/sysemu/block-backend.h | 1 + nbd/server.c | 25 ++++-- qapi/block-core.json | 24 ++--- qapi/block.json | 14 +-- qemu-nbd.c | 4 +- qmp-commands.hx | 25 +++--- tests/qemu-iotests/030 | 2 +- tests/qemu-iotests/041 | 8 +- tests/qemu-iotests/055 | 7 +- tests/qemu-iotests/057 | 4 +- 15 files changed, 161 insertions(+), 192 deletions(-)
Signature · 1 line
1.8.3.1