[libvirt] [PATCH] storage: Fix volume cloning for logical volume.

Ján Tomko jtomko at redhat.com
Thu Apr 4 09:52:59 UTC 2013


On 04/04/2013 07:15 AM, Atsushi Kumagai wrote:
> When creating a logical volume with virStorageVolCreateXMLFrom,
> "qemu-img convert" is called internally if clonevol is a file volume.
> Then, vol->target.format is used as output_fmt parameter but the 
> target.format of logical volumes is always 0 because logical volumes 
> haven't the volume format type element.
> 
> Fortunately, 0 was treated as RAW file format before commit f772b3d9,
> so there was no problem. But now, 0 is treated as the type of none,
> qemu-img fails with "Unknown file format 'none'".
> 
> This patch fixes this issue by treating output block devices as RAW
> file format like for input block devices.
> 
> Signed-off-by: Atsushi Kumagai <kumagai-atsushi at mxc.nes.nec.co.jp>
> 

ACK and pushed now.

Thank you.

Jan




More information about the libvir-list mailing list