]> git.proxmox.com Git - pve-qemu.git/blob - 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
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Mon, 6 Apr 2020 12:16:39 +0200
4 Subject: [PATCH] PVE: [Up] qemu-img: return success on info without snapshots
5
6 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 ---
8 qemu-img.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11 diff --git a/qemu-img.c b/qemu-img.c
12 index a9b3a8103c..0bc9f1af59 100644
13 --- a/qemu-img.c
14 +++ b/qemu-img.c
15 @@ -3013,7 +3013,8 @@ static int img_info(int argc, char **argv)
16 list = collect_image_info_list(image_opts, filename, fmt, chain,
17 force_share);
18 if (!list) {
19 - return 1;
20 + // return success if snapshot does not exist
21 + return 0;
22 }
23
24 switch (output_format) {