From 4c55f76d6a4d13ec1ed3cffd31ff4acc3d3122f0 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Fri, 1 Jul 2011 00:18:53 +0000 Subject: afr/stripe: collect pathinfo xattrs from all childs Signed-off-by: Venky Shankar Signed-off-by: Anand Avati BUG: 3046 (getxattr for afr should returns realpath from all childs) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3046 --- xlators/storage/posix/src/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index eb78ea739..d2cd79a75 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -2510,7 +2510,7 @@ posix_getxattr (call_frame_t *frame, xlator_t *this, } if (loc->inode && IA_ISREG (loc->inode->ia_type) && name && (strcmp (name, GF_XATTR_PATHINFO_KEY) == 0)) { - snprintf (host_buf, 1024, "%s:%s", priv->hostname, + snprintf (host_buf, 1024, "", priv->hostname, real_path); ret = dict_set_str (dict, GF_XATTR_PATHINFO_KEY, host_buf); -- cgit