]> git.proxmox.com Git - pve-qemu.git/blobdiff - debian/patches/pve/0011-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch
bump version to 3.0.0-1
[pve-qemu.git] / debian / patches / pve / 0011-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch
diff --git a/debian/patches/pve/0011-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch b/debian/patches/pve/0011-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch
new file mode 100644 (file)
index 0000000..26cc868
--- /dev/null
@@ -0,0 +1,26 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Wolfgang Bumiller <w.bumiller@proxmox.com>
+Date: Wed, 9 Dec 2015 14:18:46 +0100
+Subject: [PATCH] PVE: [Up] qemu-img: return success on info without snapshots
+
+---
+ qemu-img.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/qemu-img.c b/qemu-img.c
+index 1acddf693c..4438e0c2c9 100644
+--- a/qemu-img.c
++++ b/qemu-img.c
+@@ -2720,7 +2720,8 @@ static int img_info(int argc, char **argv)
+     list = collect_image_info_list(image_opts, filename, fmt, chain,
+                                    force_share);
+     if (!list) {
+-        return 1;
++      // return success if snapshot does not exists
++        return 0;
+     }
+     switch (output_format) {
+-- 
+2.11.0
+