Revision 34b5d2c6 block/mirror.c

b/block/mirror.c
505 505
static void mirror_complete(BlockJob *job, Error **errp)
506 506
{
507 507
    MirrorBlockJob *s = container_of(job, MirrorBlockJob, common);
508
    Error *local_err = NULL;
508 509
    int ret;
509 510

  
510
    ret = bdrv_open_backing_file(s->target, NULL);
511
    ret = bdrv_open_backing_file(s->target, NULL, &local_err);
511 512
    if (ret < 0) {
512 513
        char backing_filename[PATH_MAX];
513 514
        bdrv_get_full_backing_filename(s->target, backing_filename,
514 515
                                       sizeof(backing_filename));
515
        error_setg_file_open(errp, -ret, backing_filename);
516
        error_propagate(errp, local_err);
516 517
        return;
517 518
    }
518 519
    if (!s->synced) {

Also available in: Unified diff