Skip to content

Add bdrv_get_device_or_node_name()

Alberto Garcia qemu-devel 4 versions – Applied

Status from this message: Thanks, applied to my block-next tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 7 repliesApplied
  2. v33 patches 6 repliesSuperseded
  3. v23 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches16 repliesSuperseded

Changes in v4 from the cover letter

- Fix documentation of the 'node-name' field in BLOCK_IMAGE_CORRUPTED. Its annotation is now (json-string, optional).
- Clarify that the 'device' field can be empty even if it's always present for compatibility reasons.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3block: add bdrv_get_device_or_node_name()block.c block/quorum.c include/block/block.h+11 -41 reply
2/3block: use bdrv_get_device_or_node_name() in error messagesblock.c block/qcow.c block/qcow2.c +9 more+46 -502 replies
3/3block: add 'node-name' field to BLOCK_IMAGE_CORRUPTEDblock/qcow2.c docs/qmp/qmp-events.txt qapi/block-core.json+30 -163 replies

Reviews trailers per patch

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

PatchMax ReitzEric Blake
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

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

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/3] Add bdrv_get_device_or_node_name()

This series contains a couple of minor changes suggested by Markus in the previous one. I removed the Reviewed-by line by Max in the modified patch even if the changes are small, hope that's ok.

v4:
- Fix documentation of the 'node-name' field in BLOCK_IMAGE_CORRUPTED. Its annotation is now (json-string, optional).
- Clarify that the 'device' field can be empty even if it's always present for compatibility reasons.

v3:
- The node-name field in BLOCK_IMAGE_CORRUPTED is now Since: 2.4
- Remove the QERR_ macros instead of updating them. The text message is adapted to each case where applicable, and 'device' is renamed to 'node' only where it makes sense.

v2:
- bdrv_get_device_or_node_name() includes a comment explaining its usage.
- The error messages have been updated to say 'node' instead of 'device' where appropriate.
- The BLOCK_IMAGE_CORRUPTED event has a new 'node-name' field.

Regards,

Berto

Alberto Garcia (3):
block: add bdrv_get_device_or_node_name()
block: use bdrv_get_device_or_node_name() in error messages
block: add 'node-name' field to BLOCK_IMAGE_CORRUPTED

 block.c                   | 33 +++++++++++++++++++++------------
 block/qcow.c              |  8 ++++----
 block/qcow2.c             | 10 +++++++---
 block/qed.c               |  2 +-
 block/quorum.c            |  5 +----
 block/snapshot.c          | 12 ++++++------
 block/vdi.c               |  6 +++---
 block/vhdx.c              |  6 +++---
 block/vmdk.c              |  8 ++++----
 block/vpc.c               |  6 +++---
 block/vvfat.c             |  7 ++++---
 blockdev.c                |  9 +++++----
 docs/qmp/qmp-events.txt   | 21 +++++++++++++--------
 include/block/block.h     |  1 +
 include/qapi/qmp/qerror.h |  6 ------
 qapi/block-core.json      | 17 +++++++++++------
 16 files changed, 87 insertions(+), 70 deletions(-)
Signature · 1 line
2.1.4