Revision 34b5d2c6 block/sheepdog.c

b/block/sheepdog.c
1401 1401
    uint32_t idx, max_idx;
1402 1402
    int64_t vdi_size;
1403 1403
    void *buf = g_malloc0(SD_DATA_OBJ_SIZE);
1404
    Error *local_err = NULL;
1404 1405
    int ret;
1405 1406

  
1406
    ret = bdrv_file_open(&bs, filename, NULL, BDRV_O_RDWR);
1407
    ret = bdrv_file_open(&bs, filename, NULL, BDRV_O_RDWR, &local_err);
1407 1408
    if (ret < 0) {
1409
        qerror_report_err(local_err);
1410
        error_free(local_err);
1408 1411
        goto out;
1409 1412
    }
1410 1413

  
......
1449 1452
    char vdi[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN];
1450 1453
    uint32_t snapid;
1451 1454
    bool prealloc = false;
1455
    Error *local_err = NULL;
1452 1456

  
1453 1457
    s = g_malloc0(sizeof(BDRVSheepdogState));
1454 1458

  
......
1502 1506
            goto out;
1503 1507
        }
1504 1508

  
1505
        ret = bdrv_file_open(&bs, backing_file, NULL, 0);
1509
        ret = bdrv_file_open(&bs, backing_file, NULL, 0, &local_err);
1506 1510
        if (ret < 0) {
1511
            qerror_report_err(local_err);
1512
            error_free(local_err);
1507 1513
            goto out;
1508 1514
        }
1509 1515

  

Also available in: Unified diff