pve-qemu-qoup/debian/patches/pve/0004-qemu-img-return-success-on-info-without-snapshots.patch
Wolfgang Bumiller f185a9695e update to 2.9.0
2017-04-21 11:08:44 +02:00

27 lines
706 B
Diff

From 2d53d7c93802c9c28c5958fae5c71825b1707295 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 04/49] 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 b220cf71d7..4f7f458dd2 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -2596,7 +2596,8 @@ static int img_info(int argc, char **argv)
list = collect_image_info_list(image_opts, filename, fmt, chain);
if (!list) {
- return 1;
+ // return success if snapshot does not exists
+ return 0;
}
switch (output_format) {
--
2.11.0