This series changes the way of selecting what metadata overlap checks to perform from (currently) using a macro to using a variable contained in BDRVQcowState which can be configured at runtime through several command line options.
v2: - rebased on Kevin's block branch - patch 1: affects line numbers, diff environments and one overlap check that has been removed in the meantime - patch 2: line number changes - patch 5: replaced QCOW2_OL_SNAPSHOT_TABLE by QCOW2_OL_INACTIVE_L1 in the definition of QCOW2_OL_CACHED (the former one is already a part of QCOW2_OL_CONSTANT, the latter one was missing) Max Reitz (6): qcow2: Use negated overflow check mask qcow2: Make overlap check mask variable qcow2: Add overlap-check options qcow2: Array assigning options to OL check bits qcow2: Add more overlap check bitmask macros qcow2: Evaluate overlap check options block/qcow2-cache.c | 8 ++--- block/qcow2-cluster.c | 16 ++++----- block/qcow2-refcount.c | 22 ++++++------ block/qcow2-snapshot.c | 12 +++---- block/qcow2.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++-- block/qcow2.h | 30 +++++++++++++---- 6 files changed, 136 insertions(+), 43 deletions(-) -- 1.8.3.1