]> git.proxmox.com Git - pve-qemu-kvm.git/commitdiff
update fix-qemu-img-snapshot-removal.patch for 1.7
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 27 Nov 2013 10:07:45 +0000 (11:07 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 27 Nov 2013 11:13:42 +0000 (12:13 +0100)
debian/patches/fix-qemu-img-snapshot-removal.patch

index ca3c7b350a6c2e9fba23528f75086953213d1508..13c3bd7af672b37a0676ed68b3c90d715cbdd7e7 100644 (file)
@@ -1,15 +1,14 @@
 Index: new/qemu-img.c
 ===================================================================
---- new.orig/qemu-img.c        2013-02-11 11:06:09.000000000 +0100
-+++ new/qemu-img.c     2013-02-11 11:23:17.000000000 +0100
-@@ -1585,7 +1585,9 @@
-             error_report("Could not delete snapshot '%s': %d (%s)",
-                 snapshot_name, ret, strerror(-ret));
-         }
--        break;
+--- new.orig/qemu-img.c        2013-11-27 12:00:36.000000000 +0100
++++ new/qemu-img.c     2013-11-27 12:06:45.000000000 +0100
+@@ -1778,7 +1778,8 @@
+     list = collect_image_info_list(filename, fmt, chain);
+     if (!list) {
+-        return 1;
 +      // return success if snapshot does not exists
-+      if (ret == -ENOENT) ret = 0;
-+       break;
++        return 0;
      }
  
-     /* Cleanup */
+     switch (output_format) {