block: Error out on load_vm with active dirty bitmaps
commit70a5afedd64c3f0d3b5feae6b40b30f3e8d13e4b
authorKevin Wolf <kwolf@redhat.com>
Mon, 20 Nov 2017 14:41:31 +0000 (20 15:41 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 21 Nov 2017 13:48:23 +0000 (21 14:48 +0100)
tree93fa81af7514d079f443df71c32a0afe93cb68ae
parent2b624fe079ee7123797f6c685e714795665c0e01
block: Error out on load_vm with active dirty bitmaps

Loading a snapshot invalidates the bitmap. Just marking all blocks dirty
is not a useful response in practice, instead the user needs to be aware
that we switch to a completely different state. If they are okay with
losing the dirty bitmap, they can just explicitly delete it.

This effectively reverts commit 04dec3c3ae5.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
block/snapshot.c