]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Don't skip check for qcow2 format with network disks
authorShanzhi Yu <shyu@redhat.com>
Sat, 28 Feb 2015 09:51:36 +0000 (17:51 +0800)
committerCole Robinson <crobinso@redhat.com>
Tue, 28 Apr 2015 15:06:38 +0000 (11:06 -0400)
commit97015f2fc470a3453ab7af4ffe157e033cccd326
treeee383381b2cea0dc084f4f0522ceace7ebbf1103
parent2362e98273719f86947cd6a1b549513f04ea0d22
qemu: snapshot: Don't skip check for qcow2 format with network disks

When the domain's source disk type is network, if source protocol is rbd
or sheepdog, the 'if().. break' will end the current case, which lead to
miss check the driver type is raw or qcow2. Libvirt will allow to create
internal snapshot for a running domain with raw format disk which based
on rbd storage.

While both protocols support internal snapshots of the disk qemu is not
able to use it as it requires some place to store the memory image. The
check if the disk is backed by a qcow2 image needs to be executed
always.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1179533
Signed-off-by: Shanzhi Yu <shyu@redhat.com>
(cherry picked from commit f7c1410b0ee5b878e81f2eddf86c609947a9b27c)
src/qemu/qemu_driver.c