John Snow 74da6b9435 block/dirty-bitmaps: implement inconsistent bit
Set the inconsistent bit on load instead of rejecting such bitmaps.
There is no way to un-set it; the only option is to delete the bitmap.

Obvervations:
- bitmap loading does not need to update the header for in_use bitmaps.
- inconsistent bitmaps don't need to have their data loaded; they're
  glorified corruption sentinels.
- bitmap saving does not need to save inconsistent bitmaps back to disk.
- bitmap reopening DOES need to drop the readonly flag from inconsistent
  bitmaps to allow reopening of qcow2 files with non-qemu-owned bitmaps
  being eventually flushed back to disk.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20190301191545.8728-8-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
2019-03-12 12:05:49 -04:00
..
2019-02-22 09:42:13 +00:00
2019-02-26 19:04:47 +00:00
2019-02-26 19:04:47 +00:00
2018-08-31 16:28:33 +02:00
2019-01-04 11:15:09 +00:00
2019-02-22 09:42:13 +00:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-03-08 12:26:46 +01:00
2019-02-26 19:04:47 +00:00
2019-02-22 09:42:13 +00:00
2019-02-26 19:04:47 +00:00
2019-02-22 09:42:13 +00:00
2019-02-26 19:04:47 +00:00