diff options
| author | Stefan Hajnoczi | 2013-03-04 15:02:30 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2013-03-15 16:07:49 +0100 |
| commit | 9991923b262dc35f6dd8393ab4853edd7fc3724f (patch) | |
| tree | 1f5682543ab259a5cb9b4a8ef270076c48e1970e /linux-headers/linux | |
| parent | qcow2: Allow lazy refcounts to be enabled on the command line (diff) | |
| download | qemu-9991923b262dc35f6dd8393ab4853edd7fc3724f.tar.gz qemu-9991923b262dc35f6dd8393ab4853edd7fc3724f.tar.xz qemu-9991923b262dc35f6dd8393ab4853edd7fc3724f.zip | |
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 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions
