[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/7] qcow2: make subclusters discardable
From: |
Andrey Drobyshev |
Subject: |
[PATCH 0/7] qcow2: make subclusters discardable |
Date: |
Sat, 21 Oct 2023 00:56:15 +0300 |
This series extends the discard operation for qcow2 driver so that it
can be used to discard individial subclusters. This feature might prove
useful and gain some host disk space when dealing with the guest
TRIM/discard requests, especially with large clusters (1M, 2M) when
subclusters are enabled.
Andrey Drobyshev (7):
qcow2: make function update_refcount_discard() global
qcow2: add get_sc_range_info() helper for working with subcluster
ranges
qcow2: zeroize the entire cluster when there're no non-zero
subclusters
qcow2: make subclusters discardable
qcow2: zero_l2_subclusters: fall through to discard operation when
requested
iotests/common.rc: add disk_usage function
iotests/271: check disk usage on subcluster-based discard/unmap
block/qcow2-cluster.c | 217 +++++++++++++++++++++++++++++------
block/qcow2-refcount.c | 8 +-
block/qcow2.c | 8 +-
block/qcow2.h | 2 +
tests/qemu-iotests/250 | 5 -
tests/qemu-iotests/271 | 25 +++-
tests/qemu-iotests/271.out | 2 +
tests/qemu-iotests/common.rc | 6 +
8 files changed, 226 insertions(+), 47 deletions(-)
--
2.39.3
- [PATCH 0/7] qcow2: make subclusters discardable,
Andrey Drobyshev <=
- [PATCH 3/7] qcow2: zeroize the entire cluster when there're no non-zero subclusters, Andrey Drobyshev, 2023/10/20
- [PATCH 5/7] qcow2: zero_l2_subclusters: fall through to discard operation when requested, Andrey Drobyshev, 2023/10/20
- [PATCH 7/7] iotests/271: check disk usage on subcluster-based discard/unmap, Andrey Drobyshev, 2023/10/20
- [PATCH 2/7] qcow2: add get_sc_range_info() helper for working with subcluster ranges, Andrey Drobyshev, 2023/10/20
- [PATCH 6/7] iotests/common.rc: add disk_usage function, Andrey Drobyshev, 2023/10/20
- [PATCH 4/7] qcow2: make subclusters discardable, Andrey Drobyshev, 2023/10/20