d759b5
From 9fba5e8ed9e58e65e2e043e39eea5c9792df64df Mon Sep 17 00:00:00 2001
d759b5
Message-Id: <9fba5e8ed9e58e65e2e043e39eea5c9792df64df@dist-git>
d759b5
From: Peter Krempa <pkrempa@redhat.com>
d759b5
Date: Fri, 16 Aug 2019 14:36:58 +0200
d759b5
Subject: [PATCH] qemu: Don't report some ignored errors in
d759b5
 qemuDomainGetStatsOneBlockFallback
d759b5
MIME-Version: 1.0
d759b5
Content-Type: text/plain; charset=UTF-8
d759b5
Content-Transfer-Encoding: 8bit
d759b5
d759b5
The function ignores all errors from qemuStorageLimitsRefresh by calling
d759b5
virResetLastError. This still logs them. Since qemuStorageLimitsRefresh
d759b5
allows suppressing some, do so.
d759b5
d759b5
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
d759b5
Reviewed-by: Ján Tomko <jtomko@redhat.com>
d759b5
(cherry picked from commit 60b862cf9d6a335db65bbf2b011499dfa729ca2e)
d759b5
https: //bugzilla.redhat.com/show_bug.cgi?id=1724808
d759b5
Message-Id: <8d6542c54e9518384b1c1eca081edae31a74fed6.1565958906.git.pkrempa@redhat.com>
d759b5
Reviewed-by: Ján Tomko <jtomko@redhat.com>
d759b5
---
d759b5
 src/qemu/qemu_driver.c | 2 +-
d759b5
 1 file changed, 1 insertion(+), 1 deletion(-)
d759b5
d759b5
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
d759b5
index 88a9f565c4..d95c97928d 100644
d759b5
--- a/src/qemu/qemu_driver.c
d759b5
+++ b/src/qemu/qemu_driver.c
d759b5
@@ -20035,7 +20035,7 @@ qemuDomainGetStatsOneBlockFallback(virQEMUDriverPtr driver,
d759b5
     if (virStorageSourceIsEmpty(src))
d759b5
         return 0;
d759b5
 
d759b5
-    if (qemuStorageLimitsRefresh(driver, cfg, dom, src, false) < 0) {
d759b5
+    if (qemuStorageLimitsRefresh(driver, cfg, dom, src, true) <= 0) {
d759b5
         virResetLastError();
d759b5
         return 0;
d759b5
     }
d759b5
-- 
d759b5
2.22.1
d759b5