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 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel