path: root/libglusterfs
diff options
authorAvra Sengupta <>2013-06-26 16:50:53 +0530
committerAnand Avati <>2013-07-11 11:52:31 -0700
commit55ccdb71466ca8459f29454e9eee38fa7aa63e95 (patch)
tree3faf2dde2b906a7941ad5d20586671d4ffa7e5c6 /libglusterfs
parent869b0f2c272d8e0f3afb7ad5f15ebc0f7c900a76 (diff)
mount/fuse: expose 'glusterfs.gfid*' virtual xattr key
currently two keys are exposed: 'glusterfs.gfid' : output is 16byte binary gfid 'glusterfs.gfid.string' : output is 36 byte canonical format of gfid e.g. [root@supernova glusterfs]# getfattr -n glusterfs.gfid -e hex f0 glusterfs.gfid=0x68305acb73e541719804fcf36a4857e8 [root@supernova glusterfs]# getfattr -n glusterfs.gfid.string f0 glusterfs.gfid.string="68305acb-73e5-4171-9804-fcf36a4857e8" early consumers for this key would be geo-replication (as it has being designed to do namespace operations on gfid from the mount point, thereby needing the GFID for entry operations on the slave). Change-Id: I10b23dbd11628566ad6924334253f5d85d01a519 BUG: 847839 Original Author: Venky Shankar <> Signed-off-by: Avra Sengupta <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Anand Avati <>
Diffstat (limited to 'libglusterfs')
1 files changed, 4 insertions, 1 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h
index c2fbf5ac..a50cc7fb 100644
--- a/libglusterfs/src/glusterfs.h
+++ b/libglusterfs/src/glusterfs.h
@@ -95,7 +95,10 @@
strlen (GF_XATTR_LOCKINFO_KEY)) == 0)
#define GF_XATTR_LINKINFO_KEY "trusted.distribute.linkinfo"
-#define GFID_XATTR_KEY "trusted.gfid"
+#define GFID_XATTR_KEY "trusted.gfid"
+#define VIRTUAL_GFID_XATTR_KEY_STR "glusterfs.gfid.string"
+#define VIRTUAL_GFID_XATTR_KEY "glusterfs.gfid"
#define GLUSTERFS_INTERNAL_FOP_KEY "glusterfs-internal-fop"