summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2015-09-24 15:42:14 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-10-29 01:40:02 -0700
commit0ce29bbd6a1cc459d4f4ffc50a4658988ef52039 (patch)
treedf64343cddd9407cf85845f0056ba6abfc50826d /xlators/mount/fuse/src
parent86b6d13e42c2e0de92a2a2099644fbb75308dd12 (diff)
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 <jenkins@build.gluster.org> Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Signed-off-by: Kotresh HR <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/12438 Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/mount/fuse/src')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c4
1 files changed, 4 insertions, 0 deletions
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;