Skip to content

qcow2: Discard freed clusters

Kevin Wolf qemu-devel 2 versions – Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied
  2. v15 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Removed leftover debug code
- Don't discard after COW (overwriting compressed clusters)
- Changed some commas into semicolons

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5Revert "block: Disable driver-specific options for 1.5"blockdev.c tests/qemu-iotests/group+5 -1150 replies
2/5qcow2: Add refcount update reason to all callersblock/qcow2-cluster.c block/qcow2-refcount.c block/qcow2-snapshot.c +2 more+66 -330 replies
3/5qcow2: Options to enable discard for freed clustersblock/qcow2-refcount.c block/qcow2.c block/qcow2.h+36 -00 replies
4/5qcow2: Batch discardsblock/qcow2-cluster.c block/qcow2-refcount.c block/qcow2.c +1 more+109 -70 replies
5/5block: Always enable discard on the protocol levelblock.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] qcow2: Discard freed clusters

This series adds options to make qcow2 discard freed clusters, in several categories. By default, only freed clusters related to snapshots (i.e. mainly snapshot deletion) are discarded.

v2:
- Removed leftover debug code
- Don't discard after COW (overwriting compressed clusters)
- Changed some commas into semicolons

Kevin Wolf (5):
Revert "block: Disable driver-specific options for 1.5"
qcow2: Add refcount update reason to all callers
qcow2: Options to enable discard for freed clusters
qcow2: Batch discards
block: Always enable discard on the protocol level

 block.c                  |   2 +-
 block/qcow2-cluster.c    |  41 ++++++++++----
 block/qcow2-refcount.c   | 136 +++++++++++++++++++++++++++++++++++++++--------
 block/qcow2-snapshot.c   |   6 ++-
 block/qcow2.c            |  30 ++++++++++-
 block/qcow2.h            |  32 +++++++++--
 blockdev.c               | 118 ++--------------------------------------
 tests/qemu-iotests/group |   2 +-
 8 files changed, 214 insertions(+), 153 deletions(-)
Signature · 1 line
1.8.1.4