diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-03-12 18:26:01 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-04-05 14:54:39 +0200 |
commit | 29cdb2513c3f22f51d6f3585b41009576485cb35 (patch) | |
tree | 2ef59e8534453a4405e41c97ed8befe89ace6276 /block/vmdk.c | |
parent | d7bb72c83cfbcfd0563e158800e4052819223524 (diff) | |
download | hqemu-29cdb2513c3f22f51d6f3585b41009576485cb35.zip hqemu-29cdb2513c3f22f51d6f3585b41009576485cb35.tar.gz |
block: push recursive flushing up from drivers
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/vmdk.c')
-rw-r--r-- | block/vmdk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/vmdk.c b/block/vmdk.c index 45c003a..18e9b4c 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -1525,10 +1525,10 @@ static void vmdk_close(BlockDriverState *bs) static coroutine_fn int vmdk_co_flush(BlockDriverState *bs) { - int i, ret, err; BDRVVmdkState *s = bs->opaque; + int i, err; + int ret = 0; - ret = bdrv_co_flush(bs->file); for (i = 0; i < s->num_extents; i++) { err = bdrv_co_flush(s->extents[i].file); if (err < 0) { |