OSDN Git Service

vmdk: Add trivial backing_fmt support
authorEric Blake <eblake@redhat.com>
Mon, 6 Jul 2020 20:39:48 +0000 (15:39 -0500)
committerKevin Wolf <kwolf@redhat.com>
Tue, 14 Jul 2020 13:18:59 +0000 (15:18 +0200)
commitd51a814cf41033d2d29b050e04d85155ac941221
tree18ae8d56d7ea76e964ae67a7c24fd09c827cb1c5
parent80fa43e7df5d68d60a2662036b7d3d95ca8b68f3
vmdk: Add trivial backing_fmt support

vmdk already requires that if backing_file is present, that it be
another vmdk image (see vmdk_co_do_create).  Meanwhile, we want to
move towards always being explicit about the backing format for other
drivers where it matters.  So for convenience, make qemu-img create -F
vmdk work, while rejecting all other explicit formats (note that this
is only for QemuOpts usage; there is no change to the QAPI to allow a
format through -blockdev).

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200706203954.341758-5-eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c