summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-03-04 15:02:30 +0100
committerMichael Roth <mdroth@linux.vnet.ibm.com>2013-04-02 15:45:40 -0500
commit02ea844746e072fccd30b046a383265434d3dde8 (patch)
tree5f521587ec6bc72d6772d57666ebd285be167543 /target-mips
parent0fcf00b55c6a5fb8af1f62a9eb4cbfa3171709e6 (diff)
downloadqemu-02ea844746e072fccd30b046a383265434d3dde8.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> (cherry picked from commit 9991923b262dc35f6dd8393ab4853edd7fc3724f) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'target-mips')
0 files changed, 0 insertions, 0 deletions