This patch series adds support for zero blocks in non-active commits. The first three patches in the series contains the actual changes to the commit code, the last patch adds a test for the new functionality.
--- Changes since v1: - split up the implementation in three separate commits - removed accidentally left over includes from testing Vincent Vanlaer (4): block: get type of block allocation in commit_run block: refactor commit_run for multiple write types block: allow commit to unmap zero blocks block: add test non-active commit with zeroed data block/commit.c | 68 +++++++++++++++++++++------ tests/qemu-iotests/315 | 95 ++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/315.out | 54 ++++++++++++++++++++++ 3 files changed, 204 insertions(+), 13 deletions(-) create mode 100755 tests/qemu-iotests/315 create mode 100644 tests/qemu-iotests/315.out -- 2.44.1