summaryrefslogtreecommitdiffstats
path: root/xlators/mount
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-26 05:57:47 -0700
commit8216ecb871c8d74edcc46b7f13d1e1879be25de1 (patch)
tree519409ac6c4ccae4f0d4cdaef7f679bc0cfe2dbe /xlators/mount
parent6188b5fcebc56b3d8af1956beeec9988f3e8f268 (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/ Change-Id: I474220d69fa030b1e06a4fa0868c34fabe02efcf BUG: 1265148 Signed-off-by: Kotresh HR <khiremat@redhat.com> 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>
Diffstat (limited to 'xlators/mount')
-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;