mbox series

[v2,0/4] block: allow commit to unmap zero blocks

Message ID 20240713215644.742244-1-libvirt-e6954efa@volkihar.be (mailing list archive)
Headers show
Series block: allow commit to unmap zero blocks | expand

Message

Vincent Vanlaer July 13, 2024, 9:56 p.m. UTC
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