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