qcow2: Add corrupt bit
authorMax Reitz <mreitz@redhat.com>
Fri, 30 Aug 2013 12:34:24 +0000 (14:34 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 30 Aug 2013 13:48:43 +0000 (15:48 +0200)
commit69c98726537627e708abb8fcb33e3a2b10e40bf1
tree1fc42d5d5c0abf85fb00b8c36c46b7f794ba8f44
parent449df7063815489a0b091bcb3afa9ae80ae3acbf
qcow2: Add corrupt bit

This adds an incompatible bit indicating corruption to qcow2. Any image
with this bit set may not be written to unless for repairing (and
subsequently clearing the bit if the repair has been successful).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c
block/qcow2.h
docs/specs/qcow2.txt
tests/qemu-iotests/031.out
tests/qemu-iotests/036.out