]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/pve/0009-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch
update submodule and patches to 7.2.0
[pve-qemu.git] / debian / patches / pve / 0009-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>
83faa3fe
TL
3Date: Mon, 6 Apr 2020 12:16:39 +0200
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
d03e1b3c 12index a9b3a8103c..0bc9f1af59 100644
95259824
WB
13--- a/qemu-img.c
14+++ b/qemu-img.c
d03e1b3c 15@@ -3013,7 +3013,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;
9714cead 20+ // return success if snapshot does not exist
95259824
WB
21+ return 0;
22 }
23
24 switch (output_format) {