cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-block-qcow2-improve-error-message-in-qcow2_inactivat.patch

26ba25
From 821666d219f5caefa9b94c5fedeb850983616f24 Mon Sep 17 00:00:00 2001
26ba25
From: John Snow <jsnow@redhat.com>
26ba25
Date: Tue, 20 Nov 2018 18:18:24 +0000
26ba25
Subject: [PATCH 30/35] block/qcow2: improve error message in qcow2_inactivate
26ba25
26ba25
RH-Author: John Snow <jsnow@redhat.com>
26ba25
Message-id: <20181120181828.15132-21-jsnow@redhat.com>
26ba25
Patchwork-id: 83070
26ba25
O-Subject: [RHEL8/rhel qemu-kvm PATCH 20/24] block/qcow2: improve error message in qcow2_inactivate
26ba25
Bugzilla: 1518989
26ba25
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
26ba25
RH-Acked-by: Max Reitz <mreitz@redhat.com>
26ba25
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
26ba25
26ba25
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
26ba25
26ba25
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
26ba25
[Maintainer edit -- touched up error message. --js]
26ba25
Reviewed-by: John Snow <jsnow@redhat.com>
26ba25
Signed-off-by: John Snow <jsnow@redhat.com>
26ba25
(cherry picked from commit 132adb682098e9af40a2132ec4feec6850fce8cd)
26ba25
Signed-off-by: John Snow <jsnow@redhat.com>
26ba25
26ba25
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
26ba25
---
26ba25
 block/qcow2.c | 6 +++---
26ba25
 1 file changed, 3 insertions(+), 3 deletions(-)
26ba25
26ba25
diff --git a/block/qcow2.c b/block/qcow2.c
26ba25
index 1ea7203..5c5530d 100644
26ba25
--- a/block/qcow2.c
26ba25
+++ b/block/qcow2.c
26ba25
@@ -2116,9 +2116,9 @@ static int qcow2_inactivate(BlockDriverState *bs)
26ba25
     qcow2_store_persistent_dirty_bitmaps(bs, &local_err);
26ba25
     if (local_err != NULL) {
26ba25
         result = -EINVAL;
26ba25
-        error_report_err(local_err);
26ba25
-        error_report("Persistent bitmaps are lost for node '%s'",
26ba25
-                     bdrv_get_device_or_node_name(bs));
26ba25
+        error_reportf_err(local_err, "Lost persistent bitmaps during "
26ba25
+                          "inactivation of node '%s': ",
26ba25
+                          bdrv_get_device_or_node_name(bs));
26ba25
     }
26ba25
 
26ba25
     ret = qcow2_cache_flush(bs, s->l2_table_cache);
26ba25
-- 
26ba25
1.8.3.1
26ba25