summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2010-04-22 04:13:36 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-23 06:32:58 -0700
commit8626e201a5bceb623bb77a82fd5437ba3668cf19 (patch)
tree0c51ab781608192d07987675f1cab0b6a20cbd7b /xlators
parent582de0677da4be19fc6f873625c58c45d069ab1c (diff)
Filter out extended attribute visibility on the mount point.
Filter out extended attribute visibility on the mount point. This causes rsync -X to remove the extended attributes and `Stale NFS file handle' error on mount point, resulting in making the mount point inaccessible. 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 a8a159205..050a03123 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -1504,6 +1504,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;