Max Reitz 3cce51c919 qcow2: Repair OFLAG_COPIED when fixing leaks
Repairing OFLAG_COPIED is usually safe because it is done after the
refcounts have been repaired.  Therefore, it we did not find anyone else
referencing a data or L2 cluster, it makes no sense to not set
OFLAG_COPIED -- and the other direction (clearing OFLAG_COPIED) is
always safe, anyway, it may just induce leaks.

Furthermore, if OFLAG_COPIED is actually consistent with a wrong (leaky)
refcount, we will decrement the refcount with -r leaks, but OFLAG_COPIED
will then be wrong.  qemu-img check should not produce images that are
more corrupted afterwards then they were before.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1527085
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180509200059.31125-2-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
2018-06-11 16:18:45 +02:00
..
2018-03-13 17:05:00 -04:00
2016-10-07 14:14:06 +02:00
2018-06-01 14:41:47 +01:00
2018-06-01 14:41:48 +01:00
2018-05-15 16:15:21 +02:00
2018-05-31 04:16:06 +03:00
2018-05-16 13:37:47 -04:00
2018-05-15 16:11:41 +02:00
2018-02-09 05:05:11 +01:00
2018-05-31 04:16:06 +03:00
2017-07-17 11:34:11 +08:00
2018-06-01 14:41:47 +01:00
2018-05-15 16:11:41 +02:00
2018-06-05 10:15:12 -04:00
2018-05-29 22:19:57 +02:00
2018-06-04 10:15:16 +01:00
2018-05-15 16:11:41 +02:00