summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Capitulino2013-06-07 20:31:46 +0200
committerLuiz Capitulino2013-06-17 17:01:14 +0200
commitdacc26aae5d291317a3277970a4f39a562939a78 (patch)
treef8e7de2eb7a74dfbe1082918c5410d7af6832e67
parentrng-random: use error_setg_file_open() (diff)
downloadqemu-dacc26aae5d291317a3277970a4f39a562939a78.tar.gz
qemu-dacc26aae5d291317a3277970a4f39a562939a78.tar.xz
qemu-dacc26aae5d291317a3277970a4f39a562939a78.zip
block: mirror_complete(): use error_setg_file_open()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Acked-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--block/mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/mirror.c b/block/mirror.c
index 8b07dec314..1ae724f705 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) {