mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 12:32:05 -06:00
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>
This commit is contained in:
parent
bc5741add1
commit
dacc26aae5
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ static void mirror_complete(BlockJob *job, Error **errp)
|
||||||
char backing_filename[PATH_MAX];
|
char backing_filename[PATH_MAX];
|
||||||
bdrv_get_full_backing_filename(s->target, backing_filename,
|
bdrv_get_full_backing_filename(s->target, backing_filename,
|
||||||
sizeof(backing_filename));
|
sizeof(backing_filename));
|
||||||
error_set(errp, QERR_OPEN_FILE_FAILED, backing_filename);
|
error_setg_file_open(errp, -ret, backing_filename);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!s->synced) {
|
if (!s->synced) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue