commit | 9991923b262dc35f6dd8393ab4853edd7fc3724f | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@redhat.com> | Mon Mar 04 15:02:30 2013 +0100 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Mar 15 16:07:49 2013 +0100 |
tree | 1f5682543ab259a5cb9b4a8ef270076c48e1970e | |
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>