]> git.proxmox.com Git - mirror_qemu.git/commit
quorum: Simplify quorum_open()
authorMax Reitz <mreitz@redhat.com>
Fri, 21 Feb 2014 21:30:37 +0000 (22:30 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Feb 2014 21:32:24 +0000 (22:32 +0100)
commit8a87f3d72279acb89f3d09b28d285d2fb6a7decf
tree30e695b2eb3e99c4277c8da9de8dcf768219da17
parentc7fc5bc2a4d89ccdb1ffabc720e7c87558c9aaef
quorum: Simplify quorum_open()

Although it may not look like it, this patch simplifies quorum_open().
qdict_array_split() is now able to return QLists with different objects
than only QDicts, therefore it will now do all the work and
quorum_open() does not have to handle reference strings by itself.

This allows mixing full option dicts and reference strings for
specifying the child block devices of quorum; furthermore, it improves
handling of malformed specifications.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/quorum.c