qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] block: Document that x-blockdev-change breaks quorum children list
@ 2017-12-15 10:59 Kevin Wolf
  2017-12-15 11:07 ` [Qemu-devel] [Qemu-block] " Alberto Garcia
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wolf @ 2017-12-15 10:59 UTC (permalink / raw)
  To: qemu-block; +Cc: kwolf, mreitz, armbru, qemu-devel

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.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 qapi/block-core.json | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/qapi/block-core.json b/qapi/block-core.json
index dd763dcf87..4cc1389834 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -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.
 #
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [Qemu-block] [PATCH] block: Document that x-blockdev-change breaks quorum children list
  2017-12-15 10:59 [Qemu-devel] [PATCH] block: Document that x-blockdev-change breaks quorum children list Kevin Wolf
@ 2017-12-15 11:07 ` Alberto Garcia
  0 siblings, 0 replies; 2+ messages in thread
From: Alberto Garcia @ 2017-12-15 11:07 UTC (permalink / raw)
  To: Kevin Wolf, qemu-block; +Cc: qemu-devel, armbru, mreitz

On Fri 15 Dec 2017 11:59:05 AM CET, Kevin Wolf wrote:
> 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.
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>

Reviewed-by: Alberto Garcia <berto@igalia.com>

Berto

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-15 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-15 10:59 [Qemu-devel] [PATCH] block: Document that x-blockdev-change breaks quorum children list Kevin Wolf
2017-12-15 11:07 ` [Qemu-devel] [Qemu-block] " Alberto Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).