diff options
Diffstat (limited to 'block/qcow.c')
-rw-r--r-- | block/qcow.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/block/qcow.c b/block/qcow.c index 7fc85ae588..1e3e59b008 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -900,6 +900,14 @@ static void qcow_flush(BlockDriverState *bs) bdrv_flush(s->hd); } +static BlockDriverAIOCB *qcow_aio_flush(BlockDriverState *bs, + BlockDriverCompletionFunc *cb, void *opaque) +{ + BDRVQcowState *s = bs->opaque; + + return bdrv_aio_flush(s->hd, cb, opaque); +} + static int qcow_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) { BDRVQcowState *s = bs->opaque; @@ -940,6 +948,7 @@ static BlockDriver bdrv_qcow = { .bdrv_make_empty = qcow_make_empty, .bdrv_aio_readv = qcow_aio_readv, .bdrv_aio_writev = qcow_aio_writev, + .bdrv_aio_flush = qcow_aio_flush, .bdrv_write_compressed = qcow_write_compressed, .bdrv_get_info = qcow_get_info, |