Skip to contentSkip to conversation

block: Document that x-blockdev-change breaks quorum children list

PATCH In review Kevin Wolf 2 participants 2 messages Dec 15, 2017

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

PATCH 1/1 block: Document that x-blockdev-change breaks quorum children list

Removing a quorum child node with x-blockdev-change results in a quorum driver state that cannot be recreated with create options because it would require a list with gaps. This causes trouble in at least .bdrv_refresh_filename().

Document this problem so that we won't accidentally mark the command stable without having addressed it.

---
 qapi/block-core.json | 4 ++++
 1 file changed, 4 insertions(+)
qapi/block-core.json +4 -0
index dd763dcf87..4cc1389834 100644
@@ -3918,6 +3918,10 @@
 # does not support all kinds of operations, all kinds of children, nor
 # all block drivers.
 #
+# FIXME Removing children from a quorum node means introducing gaps in the
+# child indices. This cannot be represented in the 'children' list of
+# BlockdevOptionsQuorum, as returned by .bdrv_refresh_filename().
+#
 # Warning: The data in a new quorum child MUST be consistent with that of
 # the rest of the array.
 #
Signature · 1 line
2.13.6
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Kevin Wolf

Removing a quorum child node with x-blockdev-change results in a quorum driver state that cannot be recreated with create options because it would require a list with gaps. This causes trouble in at least .bdrv_refresh_filename().

Document this problem so that we won't accidentally mark the command stable without having addressed it.

Berto