[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen-unstable] qemu-img-xen: Fix cow creation with raw image backing files
commit be598c20435f39f2d71f4b3d8d0489dd9e3af4ba Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Date: Tue May 5 15:20:50 2009 +0100 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@xxxxxxxxxxxxx> --- qemu-img.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index efbb9b6..46e6351 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -199,7 +199,7 @@ static BlockDriverState *bdrv_new_open(const char *filename, if (!drv) error("Unknown file format '%s'", fmt); } else { - drv = NULL; + drv = &bdrv_raw; } if (bdrv_open2(bs, filename, BRDV_O_FLAGS, drv) < 0) { error("Could not open '%s'", filename); -- generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |