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
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user