]> xenbits.xen.org Git - xenclient/ioemu.git/commit
qemu-img-xen: Fix cow creation with raw image backing files
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 5 May 2009 14:20:50 +0000 (15:20 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 5 May 2009 14:20:50 +0000 (15:20 +0100)
commitbe598c20435f39f2d71f4b3d8d0489dd9e3af4ba
tree98ce451e7e1ebb46e89857d7a2ceb382fa39cf88
parent438f0453656e54f3f4db248fd280673992d5ad54
qemu-img-xen: Fix cow creation with raw image backing files

Previously
  dd if=/dev/zero of=raw_image count=100
  ./qemu-img-xen create -b raw_image -f qcow2 cow_image
would fail because it would attempt to autodetect the format of
base_image.  With this change, it works.  However,
  ./qemu-img-xen create -b cow_image -f qcow2 cow_image_2
will now fail because we now always expect the backing file to be raw.

Thanks to Xin Li and Dongxiao Xu for the bug report.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
qemu-img.c