]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: fix logical volume cloning
authorJán Tomko <jtomko@redhat.com>
Sun, 25 Nov 2012 01:59:33 +0000 (02:59 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 26 Nov 2012 13:01:29 +0000 (14:01 +0100)
commit70f0bbe8e046dae1b811378f735872d3e61f4609
tree3200a606710d8863ca4212739d3bc897392e20ea
parent5efacd781356c4cf43e91693c1f88afb6422e69f
storage: fix logical volume cloning

Commit 258e06c removed setting of the volume type to
VIR_STORAGE_VOL_BLOCK, which leads to failures in
storageVolumeCreateXMLFrom.

The type (and target.format) of the volume was set to zero. In
virStorageBackendGetBuildVolFromFunction, this gets interpreted as
VIR_STORAGE_FILE_NONE and the qemu-img tool is called with unknown
"none" format.

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=879780
src/storage/storage_backend_logical.c