sheepdog: Add trivial backing_fmt support
commit80fa43e7df5d68d60a2662036b7d3d95ca8b68f3
authorEric Blake <eblake@redhat.com>
Mon, 6 Jul 2020 20:39:47 +0000 (6 15:39 -0500)
committerKevin Wolf <kwolf@redhat.com>
Tue, 14 Jul 2020 13:18:59 +0000 (14 15:18 +0200)
tree1c12b20d827bbb203f7c21c7f07c63f5a2f161f7
parent25956af3fe5dd0385ad8017bc768a6afe41e2a74
sheepdog: Add trivial backing_fmt support

Sheepdog already requires that if backing_file is present, that it be
another sheepdog image (see sd_co_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
sheepdog 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-4-eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c