]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: extract image creation option parsing
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 5 Jul 2017 12:57:34 +0000 (13:57 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:00 +0000 (17:45 +0200)
commit0eb4a8c1df6db29e835daeb954352bfaa8994374
treee911fdd916f0020a19b83de7f4da436e07b08b7e
parent7c5bcc42120119bb46d8b2a422053467bcc7291c
qcow2: extract image creation option parsing

The image creation options parsed by qcow2_create() are also needed to
implement .bdrv_measure().  Extract the parsing code, including input
validation.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20170705125738.8777-6-stefanha@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c