]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches/pve/0004-qemu-img-return-success-on-info-without-snapshots.patch
bump version to 2.9.0-1~rc2+5
[pve-qemu-kvm.git] / debian / patches / pve / 0004-qemu-img-return-success-on-info-without-snapshots.patch
CommitLineData
1a91ab45 1From adea2808e62d32a9b22bbe3d16c84c92289983a8 Mon Sep 17 00:00:00 2001
ca0fe5f5
WB
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Wed, 9 Dec 2015 14:18:46 +0100
adeb0c7a 4Subject: [PATCH 04/48] qemu-img: return success on info without snapshots
ca0fe5f5
WB
5
6---
7 qemu-img.c | 3 ++-
8 1 file changed, 2 insertions(+), 1 deletion(-)
9
10diff --git a/qemu-img.c b/qemu-img.c
1a91ab45 11index b220cf7..4f7f458 100644
ca0fe5f5
WB
12--- a/qemu-img.c
13+++ b/qemu-img.c
1a91ab45 14@@ -2596,7 +2596,8 @@ static int img_info(int argc, char **argv)
ca0fe5f5 15
b07d35a5 16 list = collect_image_info_list(image_opts, filename, fmt, chain);
ca0fe5f5
WB
17 if (!list) {
18- return 1;
19+ // return success if snapshot does not exists
20+ return 0;
21 }
22
23 switch (output_format) {
24--
252.1.4
26