diff options
| author | Kevin Wolf | 2015-12-22 16:10:32 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2016-01-20 13:36:23 +0100 |
| commit | 140fd5a69cf19460b8daa8a9bb83bd869f6db14d (patch) | |
| tree | aa72e90f53710d4164d9d273a7935613872e6763 /include/exec | |
| parent | qcow2: Implement .bdrv_inactivate (diff) | |
| download | qemu-140fd5a69cf19460b8daa8a9bb83bd869f6db14d.tar.gz qemu-140fd5a69cf19460b8daa8a9bb83bd869f6db14d.tar.xz qemu-140fd5a69cf19460b8daa8a9bb83bd869f6db14d.zip | |
qcow2: Fix BDRV_O_INACTIVE handling in qcow2_invalidate_cache()
What qcow2_invalidate_cache() should do is close the image with
BDRV_O_INACTIVE set and reopen it with the flag cleared. In fact, it
used to do exactly the opposite: qcow2_close() relied on bs->open_flags,
which is already updated to have cleared BDRV_O_INACTIVE at this point,
whereas qcow2_open() was called with s->flags, which has the flag still
set. Fix this.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
