Another series of fixes for bugs that were found using blkdebug. The last two of them are presumably relevant even outside error paths and can cause corruption. They should be applied to stable-0.12, too.
Kevin Wolf (5): qcow2: Allow qcow2_get_cluster_offset to return errors qcow2: Change l2_load to return 0/-errno qcow2: Return right error code in write_refcount_block_entries qcow2: Fix corruption after refblock allocation qcow2: Fix corruption after error in update_refcount block/qcow2-cluster.c | 70 ++++++++++++++++++++++++++++------------------- block/qcow2-refcount.c | 42 +++++++++++++++++++--------- block/qcow2.c | 16 +++++++++-- block/qcow2.h | 4 +- 4 files changed, 85 insertions(+), 47 deletions(-)