]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: introduce ceph.mirror.dirty_snap_id vxattr
authorVenky Shankar <vshankar@redhat.com>
Wed, 17 Feb 2021 12:51:52 +0000 (07:51 -0500)
committerVenky Shankar <vshankar@redhat.com>
Thu, 27 May 2021 13:36:27 +0000 (09:36 -0400)
commit1c81d999ff9adb5f27066e2e705b89fdbd3f21d7
tree0d4422c481c666ae924efea6ae4cfde7892f8272
parentb3f5a49d8165c5d914efbbd05376ce77767845ba
mds: introduce ceph.mirror.dirty_snap_id vxattr

Purpose of this xattr is to identify if the "next" snapshot to be
synchronized can be incrementally transferred. Value of the xattr
is the snap-id of a snapshot in the primary cluster (for a given
directory root).

CephFS mirror daemon sets this xattr on the directory root once
the data for a snapshot is synchronized, thereby signifying that
the data under this directory root is the data of the snapshot
identified by the snap-id value. This allows the mirror daemon
to use the much efficient selective synchronzation (based on
mtime/ctime) by scanning the two snapshots locally and only
transferring the inodes that have changed.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 544abaf720002bcfb02c1d3b325697542d0a501e)
src/mds/Server.h