From 8626e201a5bceb623bb77a82fd5437ba3668cf19 Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Thu, 22 Apr 2010 04:13:36 +0000 Subject: 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 Signed-off-by: Anand V. Avati 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 --- xlators/cluster/dht/src/dht-common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xlators') 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; -- cgit