Skip to content

quorum: Simplify quorum_open()

Max Reitz qemu-devel 2 versions Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Patch 1: Adapted comment about how num_children is determined [Benoît]
- Patch 2: Fixing the monitor output of quorum (v19) requires fixing of the test output as well; however, filtering the sector-num is no longer required

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2quorum: Simplify quorum_open()block/quorum.c+39 -270 replies
2/2iotests: Mixed quorum child device specificationstests/qemu-iotests/081 tests/qemu-iotests/081.out+66 -01 reply

Reviews trailers per patch

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

PatchBenoit Canet
1/2R-b
2/2R-b

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] quorum: Simplify quorum_open()

This series employs the new ability of qdict_array_split() to not only split a QDict into a QList of QDicts (and a remainder QDict), but into a QList of QObjects of any kind, to simplify quorum_open(). This (in my opinion) enhances readability, robustness against malformatted options and allows specifying both reference strings and full option dicts at the same time.

This series depends on v19 of Benoît's Quorum series and on my "Extract non-QDicts in qdict_array_split()" series.

v2:
- Patch 1: Adapted comment about how num_children is determined [Benoît]
- Patch 2: Fixing the monitor output of quorum (v19) requires fixing of the test output as well; however, filtering the sector-num is no longer required

Max Reitz (2):
quorum: Simplify quorum_open()
iotests: Mixed quorum child device specifications

 block/quorum.c             | 66 +++++++++++++++++++++++++++-------------------
 tests/qemu-iotests/081     | 51 +++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/081.out | 15 +++++++++++
 3 files changed, 105 insertions(+), 27 deletions(-)
Signature · 1 line
1.9.0