[Devel] [PATCH RH9 0/7] allow to seek holes is block devices
Andrey Zhadchenko
andrey.zhadchenko at virtuozzo.com
Mon Jul 24 10:09:36 MSK 2023
We need to be able to know if and where the image is sparse during
backups.
Implement blockdev and dm infrastructure, add an ability to find
holes for dm-qcow2, dm-ploop, dm-push-backup
After this patches llseek with SEEK_HOLES and SEEK_DATA can be used
with block devices
Andrey Zhadchenko (7):
block/fops: add find_hole to blockdevops
dm: add find_hole infrastructure
dm/push_backup: add seek proxy
dm/dm-qcow2: add find_hole
dm/dm-ploop: reinforce some defines
dm/dm-ploop: allow to check if cluster is locked
dm/dm-ploop: add find_hole
block/fops.c | 11 +++
drivers/md/dm-ploop-map.c | 52 ++++++++++++-
drivers/md/dm-ploop-target.c | 1 +
drivers/md/dm-ploop.h | 9 ++-
drivers/md/dm-push-backup.c | 12 +++
drivers/md/dm-qcow2-map.c | 140 ++++++++++++++++++++++++++++++++++
drivers/md/dm-qcow2-target.c | 1 +
drivers/md/dm-qcow2.h | 2 +
drivers/md/dm.c | 39 ++++++++++
include/linux/blkdev.h | 1 +
include/linux/device-mapper.h | 4 +
11 files changed, 267 insertions(+), 5 deletions(-)
--
2.39.3
More information about the Devel
mailing list