summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2010-04-23 01:12:35 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-23 06:33:14 -0700
commit64a258d03665b7570ad6199c4e6211ba652b443d (patch)
treee3d3ba4238a246a6feed863d548bb52abce8f88d /xlators
parentedbae0f3d266ad99b71b1d3ed15a0d9241afb53c (diff)
Filter out extended attribute visibility on the mount point.
Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 797 (DHT layout and posix generation number xattr's should be filtered) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=797
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 1b9834e..02557a0 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -1433,6 +1433,12 @@ int
dht_getxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int op_ret, int op_errno, dict_t *xattr)
{
+ if (op_ret != -1) {
+ if (dict_get (xattr, "trusted.glusterfs.dht")) {
+ dict_del (xattr, "trusted.glusterfs.dht");
+ }
+ }
+
DHT_STACK_UNWIND (getxattr, frame, op_ret, op_errno, xattr);
return 0;