On 2018-04-11 14:26, Vladimir Sementsov-Ogievskiy wrote: > Checking reopen by existence of some bitmaps is wrong, as it may be > some other bitmaps, or on the other hand, user may remove bitmaps. This > criteria is bad. To simplify things and make behavior more predictable > let's just add a flag to remember, that we've already tried to load > bitmaps on open and do not want do it again. > > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> > --- > block/qcow2.h | 1 + > block/qcow2.c | 16 ++++++++-------- > 2 files changed, 9 insertions(+), 8 deletions(-)
Reviewed-by: Max Reitz <mre...@redhat.com>