diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-09-21 17:50:58 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-09-21 17:50:58 -0500 |
commit | e1bb0a1a6c7c6d51443856ca90bd538b1ef5feeb (patch) | |
tree | ec271a0d224608382eb146d68298fd9e9fd0d3c9 /block/qcow2-snapshot.c | |
parent | f36d53ef6cb848d5cf204b0854b12e0359f0fd7e (diff) | |
parent | d9d334176c5dba23b47be07192f431b0c030928d (diff) |
Merge remote branch 'kwolf/for-anthony' into staging
Diffstat (limited to 'block/qcow2-snapshot.c')
-rw-r--r-- | block/qcow2-snapshot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/qcow2-snapshot.c b/block/qcow2-snapshot.c index 6228612f84..bbfcaaae22 100644 --- a/block/qcow2-snapshot.c +++ b/block/qcow2-snapshot.c @@ -138,6 +138,7 @@ static int qcow_write_snapshots(BlockDriverState *bs) snapshots_size = offset; snapshots_offset = qcow2_alloc_clusters(bs, snapshots_size); + bdrv_flush(bs->file); offset = snapshots_offset; if (offset < 0) { return offset; @@ -271,6 +272,7 @@ int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info) if (l1_table_offset < 0) { goto fail; } + bdrv_flush(bs->file); sn->l1_table_offset = l1_table_offset; sn->l1_size = s->l1_size; |