From 0ce29bbd6a1cc459d4f4ffc50a4658988ef52039 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Thu, 24 Sep 2015 15:42:14 +0530 Subject: features/shard: Support geo-rep for sharded volume Approach: Shard xlator on slave side is by passed for all the fops to geo-rep mount. So each shard on master is considered as a separate file for geo-rep and it syncs them separately on to slave. The extended attribute in which shard maintains the size is also synced from master and shard on slave doesn't calculate by itself. Pre-requisites: 1. If master is sharded volume, slave also should be sharded. 2. Slave's shard configurations should be same as master. 3. Geo-rep config of xattr sync should not be disabled. All other dependant patches: 1. http://review.gluster.org/#/c/12205/ 2. http://review.gluster.org/#/c/12206/ 3. http://review.gluster.org/#/c/12225/ 4. http://review.gluster.org/#/c/12226/ BUG: 1275972 Change-Id: Ieba70e75ebaebd70851454e1b85c0fe86022ad8d Reviewed-on: http://review.gluster.org/12228 Tested-by: NetBSD Build System Reviewed-by: Krutika Dhananjay Reviewed-by: Pranith Kumar Karampuri Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/12438 Tested-by: Gluster Build System --- xlators/mount/fuse/src/fuse-helpers.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/mount') diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index 22aa9b486d1..0f8abf03d32 100644 --- a/xlators/mount/fuse/src/fuse-helpers.c +++ b/xlators/mount/fuse/src/fuse-helpers.c @@ -638,6 +638,10 @@ fuse_ignore_xattr_set (fuse_private_t *priv, char *key) || (fnmatch ("system.posix_acl_access", key, FNM_PERIOD) == 0) || (fnmatch ("glusterfs.gfid.newfile", + key, FNM_PERIOD) == 0) + || (fnmatch ("*.glusterfs.shard.block-size", + key, FNM_PERIOD) == 0) + || (fnmatch ("*.glusterfs.shard.file-size", key, FNM_PERIOD) == 0))) ret = -1; -- cgit