Revision ddf5636d block/qcow2.c
b/block/qcow2.c | ||
---|---|---|
1553 | 1553 |
*/ |
1554 | 1554 |
BlockDriver* drv = bdrv_find_format("qcow2"); |
1555 | 1555 |
assert(drv != NULL); |
1556 |
ret = bdrv_open(&bs, filename, NULL, |
|
1556 |
ret = bdrv_open(&bs, filename, NULL, NULL,
|
|
1557 | 1557 |
BDRV_O_RDWR | BDRV_O_CACHE_WB | BDRV_O_NO_FLUSH, drv, &local_err); |
1558 | 1558 |
if (ret < 0) { |
1559 | 1559 |
error_propagate(errp, local_err); |
... | ... | |
1604 | 1604 |
bs = NULL; |
1605 | 1605 |
|
1606 | 1606 |
/* Reopen the image without BDRV_O_NO_FLUSH to flush it before returning */ |
1607 |
ret = bdrv_open(&bs, filename, NULL, |
|
1607 |
ret = bdrv_open(&bs, filename, NULL, NULL,
|
|
1608 | 1608 |
BDRV_O_RDWR | BDRV_O_CACHE_WB | BDRV_O_NO_BACKING, |
1609 | 1609 |
drv, &local_err); |
1610 | 1610 |
if (local_err) { |
Also available in: Unified diff