This series fixes several bugs of qcow2 when doing preallocation with a cluster_size larger than the default value.
v4: - qemu-iotests: use _filter_testdir directly. - remove n_end in qcow2_co_writev() that is never used. Hu Tao (4): qcow2: remove n_start and n_end of qcow2_alloc_cluster_offset() qcow2: fix offset overflow in qcow2_alloc_clusters_at() qcow2: check for NULL l2meta qemu-iotests: add test for qcow2 preallocation with different cluster sizes block/qcow2-cluster.c | 14 +++++------ block/qcow2-refcount.c | 8 +++++- block/qcow2.c | 36 +++++++++++++------------- block/qcow2.h | 2 +- tests/qemu-iotests/079 | 63 ++++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/079.out | 32 +++++++++++++++++++++++ tests/qemu-iotests/group | 1 + trace-events | 2 +- 8 files changed, 128 insertions(+), 30 deletions(-) create mode 100755 tests/qemu-iotests/079 create mode 100644 tests/qemu-iotests/079.out -- 1.8.5.2.229.g4448466