|
|
9ae3a8 |
From 6793e07d618e99a30d8cc13cc53970f7cd5f0aa9 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
Date: Thu, 31 Oct 2013 16:29:25 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 06/29] block: mirror_complete(): use error_setg_file_open()
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1383236971-6067-3-git-send-email-lersek@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 55192
|
|
|
9ae3a8 |
O-Subject: [RHEL-7 qemu-kvm PATCH 2/8] block: mirror_complete(): use error_setg_file_open()
|
|
|
9ae3a8 |
Bugzilla: 907743
|
|
|
9ae3a8 |
RH-Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
From: Luiz Capitulino <lcapitulino@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit dacc26aae5d291317a3277970a4f39a562939a78)
|
|
|
9ae3a8 |
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
block/mirror.c | 2 +-
|
|
|
9ae3a8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
block/mirror.c | 2 +-
|
|
|
9ae3a8 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/block/mirror.c b/block/mirror.c
|
|
|
9ae3a8 |
index 8b07dec..1ae724f 100644
|
|
|
9ae3a8 |
--- a/block/mirror.c
|
|
|
9ae3a8 |
+++ b/block/mirror.c
|
|
|
9ae3a8 |
@@ -512,7 +512,7 @@ static void mirror_complete(BlockJob *job, Error **errp)
|
|
|
9ae3a8 |
char backing_filename[PATH_MAX];
|
|
|
9ae3a8 |
bdrv_get_full_backing_filename(s->target, backing_filename,
|
|
|
9ae3a8 |
sizeof(backing_filename));
|
|
|
9ae3a8 |
- error_set(errp, QERR_OPEN_FILE_FAILED, backing_filename);
|
|
|
9ae3a8 |
+ error_setg_file_open(errp, -ret, backing_filename);
|
|
|
9ae3a8 |
return;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
if (!s->synced) {
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|