From 8216ecb871c8d74edcc46b7f13d1e1879be25de1 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/ Change-Id: I474220d69fa030b1e06a4fa0868c34fabe02efcf BUG: 1265148 Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/12228 Tested-by: NetBSD Build System Reviewed-by: Krutika Dhananjay Reviewed-by: Pranith Kumar Karampuri --- xlators/mount/fuse/src/fuse-helpers.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/mount/fuse/src') 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