summaryrefslogtreecommitdiff
path: root/block/qcow2-snapshot.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-03-04 15:02:30 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2013-03-15 16:07:49 +0100
commit9991923b262dc35f6dd8393ab4853edd7fc3724f (patch)
tree1f5682543ab259a5cb9b4a8ef270076c48e1970e /block/qcow2-snapshot.c
parent74c4510a3cf7c369ee524c6f8fa8a87cf08ba608 (diff)
downloadqemu-9991923b262dc35f6dd8393ab4853edd7fc3724f.tar.gz
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 'block/qcow2-snapshot.c')
0 files changed, 0 insertions, 0 deletions