diff options
author | Kevin Wolf <kwolf@redhat.com> | 2015-12-22 16:14:10 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-01-20 13:36:24 +0100 |
commit | 191fb11bdfbf53b33068268ce995a5c84045a8d9 (patch) | |
tree | edd46608d17d01e129d293ba4b98047c11892f4e /block/vmdk.c | |
parent | 140fd5a69cf19460b8daa8a9bb83bd869f6db14d (diff) |
qcow2: Make image inaccessible after failed qcow2_invalidate_cache()
If qcow2_invalidate_cache() fails, we are in a state where qcow2_close()
has already been completed, but the image hasn't been reopened yet.
Calling into any qcow2 function for an image in this state will cause
crashes.
The real solution would be to get rid of the close/open pair and instead
do an atomic reset of the involved data structures, but this isn't
trivial, so let's just make the image inaccessible for now.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block/vmdk.c')
0 files changed, 0 insertions, 0 deletions