]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs_mirror: Don't use blockdiff on smaller files
authorKotresh HR <khiremat@redhat.com>
Sun, 15 Feb 2026 09:37:09 +0000 (15:07 +0530)
committerKotresh HR <khiremat@redhat.com>
Sun, 22 Feb 2026 18:56:35 +0000 (00:26 +0530)
commitfd9319767a6d064ac01fa234c39d92cdf5811102
treeb281c751855d7c6f9706c502737dac2f06a2074a
parentf6a6e781b887b01a640d6321a2c085577d9ba07e
tools/cephfs_mirror: Don't use blockdiff on smaller files

Introduce a new configuration option,
'cephfs_mirror_blockdiff_min_file_size', to control the minimum file
size above which block-level diff is used during CephFS mirroring.

Files smaller than the configured threshold are synchronized using
full file copy, while larger files attempt block-level delta sync.
This provides better flexibility across environments with varying
file size distributions and performance constraints.

The default value is set to 16_M (16 MiB). The value is read once
at beginning of every snapshot sync.

Fixes: https://tracker.ceph.com/issues/73452
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/common/options/cephfs-mirror.yaml.in
src/tools/cephfs_mirror/PeerReplayer.cc
src/tools/cephfs_mirror/PeerReplayer.h