summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-07-17 22:09:17 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-20 14:28:49 -0700
commit5be3c142978257032bd11ad420382859fc204702 (patch)
tree45378ec787c8b9d89713585763c6ff9a4564f441 /xlators/storage/posix/src/posix.h
parent2105226253d4fe8cca2e31de76960ddc1a47a8c3 (diff)
posix getxattr supports new key 'trusted.glusterfs.location'
which can be used to get the file location by 'hostname' of the machine where file resides. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 131 (provide a way to get the file location in clustered storage) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=131
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r--xlators/storage/posix/src/posix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h
index ed6b46430..15829db18 100644
--- a/xlators/storage/posix/src/posix.h
+++ b/xlators/storage/posix/src/posix.h
@@ -65,6 +65,7 @@ struct posix_private {
char *base_path;
int32_t base_path_length;
+ char hostname[256];
/* Statistics, provides activity of the server */
struct xlator_stats stats;