]> 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.2.0-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 2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
6402d961
TL
3Date: Tue, 10 Mar 2020 12:55:07 +0100
4Subject: [PATCH 10/32] PVE: [Up] qemu-img: return success on info without
5 snapshots
95259824 6
b855dce7 7Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
95259824
WB
8---
9 qemu-img.c | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
11
12diff --git a/qemu-img.c b/qemu-img.c
6402d961 13index 95a24b9762..12211bed76 100644
95259824
WB
14--- a/qemu-img.c
15+++ b/qemu-img.c
6402d961 16@@ -2791,7 +2791,8 @@ static int img_info(int argc, char **argv)
6838f038
WB
17 list = collect_image_info_list(image_opts, filename, fmt, chain,
18 force_share);
95259824
WB
19 if (!list) {
20- return 1;
9714cead 21+ // return success if snapshot does not exist
95259824
WB
22+ return 0;
23 }
24
25 switch (output_format) {