|
|
7711c0 |
From f2f3456bff9d30ce3850ff4d97b114714e4fe90d Mon Sep 17 00:00:00 2001
|
|
|
7711c0 |
From: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Date: Wed, 6 Feb 2019 22:12:39 +0100
|
|
|
7711c0 |
Subject: [PATCH 29/33] block/qcow2: improve error message in qcow2_inactivate
|
|
|
7711c0 |
|
|
|
7711c0 |
RH-Author: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Message-id: <20190206221243.7407-20-jsnow@redhat.com>
|
|
|
7711c0 |
Patchwork-id: 84278
|
|
|
7711c0 |
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH v2 19/23] block/qcow2: improve error message in qcow2_inactivate
|
|
|
7711c0 |
Bugzilla: 1658343
|
|
|
7711c0 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
|
|
|
7711c0 |
[Maintainer edit -- touched up error message. --js]
|
|
|
7711c0 |
Reviewed-by: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
(cherry picked from commit 132adb682098e9af40a2132ec4feec6850fce8cd)
|
|
|
7711c0 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
---
|
|
|
7711c0 |
block/qcow2.c | 6 +++---
|
|
|
7711c0 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
7711c0 |
|
|
|
7711c0 |
diff --git a/block/qcow2.c b/block/qcow2.c
|
|
|
7711c0 |
index 1ea7203..5c5530d 100644
|
|
|
7711c0 |
--- a/block/qcow2.c
|
|
|
7711c0 |
+++ b/block/qcow2.c
|
|
|
7711c0 |
@@ -2116,9 +2116,9 @@ static int qcow2_inactivate(BlockDriverState *bs)
|
|
|
7711c0 |
qcow2_store_persistent_dirty_bitmaps(bs, &local_err);
|
|
|
7711c0 |
if (local_err != NULL) {
|
|
|
7711c0 |
result = -EINVAL;
|
|
|
7711c0 |
- error_report_err(local_err);
|
|
|
7711c0 |
- error_report("Persistent bitmaps are lost for node '%s'",
|
|
|
7711c0 |
- bdrv_get_device_or_node_name(bs));
|
|
|
7711c0 |
+ error_reportf_err(local_err, "Lost persistent bitmaps during "
|
|
|
7711c0 |
+ "inactivation of node '%s': ",
|
|
|
7711c0 |
+ bdrv_get_device_or_node_name(bs));
|
|
|
7711c0 |
}
|
|
|
7711c0 |
|
|
|
7711c0 |
ret = qcow2_cache_flush(bs, s->l2_table_cache);
|
|
|
7711c0 |
--
|
|
|
7711c0 |
1.8.3.1
|
|
|
7711c0 |
|