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