block: Use backing format driver during image creation
commit96df67d1c3928704cd76d0b2e76372ef18658e85
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 24 Jan 2011 09:32:20 +0000 (24 09:32 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 15:49:50 +0000 (24 16:49 +0100)
tree354ad1c40f9258f61bd08540b777ceb74b2e33b6
parent850ec1133bf0f78ff19402cfd5d77eea376599a9
block: Use backing format driver during image creation

The backing format should be honored during image creation.  For some
reason we currently use the image format to open the backing file.  This
fails when the backing file has a different format than the image being
created.  Keep the image and backing format drivers completely separate.

Also print the backing filename if there is an error opening the backing
file instead of the image filename.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c