summaryrefslogtreecommitdiffstats
path: root/qapi/qapi-clone-visitor.c
diff options
context:
space:
mode:
authorAlberto Garcia2018-10-18 10:59:03 +0200
committerKevin Wolf2018-11-05 15:09:54 +0100
commit808b27d464287666821483257289b1a3379264b2 (patch)
tree1d9cecb2bec37f73be67a9b7226f2090773d6be1 /qapi/qapi-clone-visitor.c
parentiotest: Test the blkverify mode of the Quorum driver (diff)
downloadqemu-808b27d464287666821483257289b1a3379264b2.tar.gz
qemu-808b27d464287666821483257289b1a3379264b2.tar.xz
qemu-808b27d464287666821483257289b1a3379264b2.zip
quorum: Forbid adding children in blkverify mode
The blkverify mode of Quorum only works when the number of children is exactly two, so any attempt to add a new one must return an error. quorum_del_child() on the other hand doesn't need any additional check because decreasing the number of children would make it go under the vote threshold. Signed-off-by: Alberto Garcia <berto@igalia.com> Reported-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi/qapi-clone-visitor.c')
0 files changed, 0 insertions, 0 deletions