]> git.proxmox.com Git - mirror_qemu.git/commit - block/sheepdog.c
sheepdog: QAPIfy "redundancy" create option
authorKevin Wolf <kwolf@redhat.com>
Thu, 1 Feb 2018 16:26:27 +0000 (17:26 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (15:17 +0100)
commita595e4bcca4ad6c5544008931dc92bed1da3f89f
tree40b2d5e981e5072f5cda9569fa4eed573607b59e
parenta1a42af422d46812f1f0cebe6b230c20409a3731
sheepdog: QAPIfy "redundancy" create option

The "redundancy" option for Sheepdog image creation is currently a
string that can encode one or two integers depending on its format,
which at the same time implicitly selects a mode.

This patch turns it into a QAPI union and converts the string into such
a QAPI object before interpreting the values.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/sheepdog.c
qapi/block-core.json