From 5e7e12694e3898ef7bb5425827122c434a465ce8 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Wed, 24 Dec 2014 21:26:28 +0530 Subject: feature/changelog: Virtual xattr to trigger explicit sync in geo-rep. A virtual xattr "glusterfs.geo-rep.trigger-sync" is provided in glusterfs through changelog translator. Geo-rep triggers a explicit data sync on setting this xattr on a file. Changelog captures a DATA entry on file's gfid on setting this virtual xattr on a file. This is supported only for files. It doesn't support directories. Usage: setfattr -n glusterfs.geo-rep.trigger-sync Change-Id: Ia689326ac2dcb31035ffbecad2c548eda4eb9245 BUG: 1176934 Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/9337 Tested-by: Gluster Build System Reviewed-by: Venky Shankar Tested-by: Venky Shankar --- libglusterfs/src/glusterfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index a0a8befc447..4c213f41576 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -131,6 +131,7 @@ #define QUOTA_SIZE_KEY "trusted.glusterfs.quota.size" #define GFID_TO_PATH_KEY "glusterfs.gfid2path" #define GF_XATTR_STIME_PATTERN "trusted.glusterfs.*.stime" +#define GF_XATTR_TRIGGER_SYNC "glusterfs.geo-rep.trigger-sync" /* Index xlator related */ #define GF_XATTROP_INDEX_GFID "glusterfs.xattrop_index_gfid" -- cgit