From f2c110aa4aa9c1943d9200058fc449c300a01338 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 17 Jul 2012 16:44:46 +0530 Subject: 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 BUG: 801887 Reviewed-on: http://review.gluster.com/3680 Tested-by: Gluster Build System Reviewed-by: Shishir Gowda --- xlators/cluster/stripe/src/stripe.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/cluster/stripe/src/stripe.c') 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); -- cgit