diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-03-04 15:02:30 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-03-15 16:07:49 +0100 |
commit | 9991923b262dc35f6dd8393ab4853edd7fc3724f (patch) | |
tree | 1f5682543ab259a5cb9b4a8ef270076c48e1970e /target-mips/machine.c | |
parent | 74c4510a3cf7c369ee524c6f8fa8a87cf08ba608 (diff) |
qcow2: flush refcount cache correctly in alloc_refcount_block()
update_refcount() affects the refcount cache, it does not write to disk.
Therefore bdrv_flush(bs->file) does nothing. We need to flush the
refcount cache in order to write out the refcount updates!
While we're here also add error returns when qcow2_cache_flush() fails.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'target-mips/machine.c')
0 files changed, 0 insertions, 0 deletions