summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-07-17 16:44:46 +0530
committerAnand Avati <avati@redhat.com>2012-07-17 23:05:31 -0700
commitf2c110aa4aa9c1943d9200058fc449c300a01338 (patch)
tree7e0e7edbd2828e651e43e7cb48dd7caa35929acd /xlators/cluster
parenta4e11fd67e3608c828e5bb8abf7a310b4f0a3017 (diff)
stripe: filter coalesce key in getxattr()/listxattr()
as 'stripe-coalesce' is an internal key, no need to show it on top of the mount-point. Change-Id: Iab836e73d59c42774db8a2eee13fe3b0cd994bc9 Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 801887 Reviewed-on: http://review.gluster.com/3680 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shishir Gowda <sgowda@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/stripe/src/stripe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index 6aae3da44..6a5c495b5 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -4545,6 +4545,7 @@ stripe_internal_getxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
char size_key[256] = {0,};
char index_key[256] = {0,};
char count_key[256] = {0,};
+ char coalesce_key[256] = {0,};
VALIDATE_OR_GOTO (frame, out);
VALIDATE_OR_GOTO (frame->local, out);
@@ -4555,10 +4556,12 @@ stripe_internal_getxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
sprintf (size_key, "trusted.%s.stripe-size", this->name);
sprintf (count_key, "trusted.%s.stripe-count", this->name);
sprintf (index_key, "trusted.%s.stripe-index", this->name);
+ sprintf (coalesce_key, "trusted.%s.stripe-coalesce", this->name);
dict_del (xattr, size_key);
dict_del (xattr, count_key);
dict_del (xattr, index_key);
+ dict_del (xattr, coalesce_key);
out:
STRIPE_STACK_UNWIND (getxattr, frame, op_ret, op_errno, xattr, xdata);