]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/pve/0010-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch
bump version to 4.1.1-2
[pve-qemu.git] / debian / patches / pve / 0010-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch
CommitLineData
23102ed6 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
95259824
WB
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Wed, 9 Dec 2015 14:18:46 +0100
53e83913 4Subject: [PATCH] PVE: [Up] qemu-img: return success on info without snapshots
95259824 5
b855dce7 6Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
95259824
WB
7---
8 qemu-img.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11diff --git a/qemu-img.c b/qemu-img.c
be901f66 12index 79983772de..c64f260876 100644
95259824
WB
13--- a/qemu-img.c
14+++ b/qemu-img.c
be901f66 15@@ -2773,7 +2773,8 @@ static int img_info(int argc, char **argv)
6838f038
WB
16 list = collect_image_info_list(image_opts, filename, fmt, chain,
17 force_share);
95259824
WB
18 if (!list) {
19- return 1;
20+ // return success if snapshot does not exists
21+ return 0;
22 }
23
24 switch (output_format) {