qemu-img: Fail creation if backing format is invalid
commit5eeaad5a57b94d26747ed8a96fab69494baef75d
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Tue, 7 Dec 2010 09:35:56 +0000 (7 09:35 +0000)
committerKevin Wolf <kwolf@redhat.com>
Tue, 14 Dec 2010 14:44:21 +0000 (14 15:44 +0100)
treeaafdf035ca9aa927ab814efa59986c96a539d1d8
parenta87a6721db3975c93798b6fd6fa42996e9aa695a
qemu-img: Fail creation if backing format is invalid

The qemu-img create command should check the backing format to ensure
only image files with valid backing formats are created.  By checking in
qemu-img.c we can print a useful error message.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c