[PATCH RFC 01/27] DO NOT APPLY UPSTREAM: Reproducer for disk snapshot crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use the following xml to create a disk-only snapshot of a VM with this
patch applied to crash libvirtd:
<domainsnapshot>
  <disks>
    <disk name='vda' type='file'>
      <driver type='qcow2'/>
      <source file='/tmp/path.img'/>
    </disk>
  </disks>
</domainsnapshot>
---
 src/qemu/qemu_driver.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 45d11cd..9ebfecf 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -12225,6 +12225,9 @@ qemuDomainSnapshotCreateSingleDiskActive(virQEMUDriverPtr driver,
         goto cleanup;
     }

+    kill(vm->pid, 9);
+    sleep(1);
+
     /* create the actual snapshot */
     if (snap->format)
         formatStr = virStorageFileFormatTypeToString(snap->format);
-- 
1.8.5.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]