diff options
author | Humble Devassy Chirammal <hchiramm@redhat.com> | 2015-07-23 18:02:10 +0530 |
---|---|---|
committer | Humble Devassy Chirammal <humble.devassy@gmail.com> | 2015-08-11 05:50:55 -0700 |
commit | 0c9e2446f5beffca97d26ea1fe9816319bde525c (patch) | |
tree | 1b22c9424e3cff46382d9b65bd4477dd02a19c43 /doc/legacy/get_put_api_using_xattr.txt | |
parent | 6af535cf4d10fa830bb45ba00269649a78094e40 (diff) |
Removing 'legacy' directory from glusterfs doc repo
As per http://www.gluster.org/pipermail/gluster-users/2015-July/022918.html.
Change-Id: Ie1473c967a53a34b6e2b4f4653e3e63ae5ea16fa
BUG: 1206539
Signed-off-by: Humble Devassy Chirammal <hchiramm@redhat.com>
Reviewed-on: http://review.gluster.org/11748
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Tested-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Diffstat (limited to 'doc/legacy/get_put_api_using_xattr.txt')
-rw-r--r-- | doc/legacy/get_put_api_using_xattr.txt | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/doc/legacy/get_put_api_using_xattr.txt b/doc/legacy/get_put_api_using_xattr.txt deleted file mode 100644 index 243f9f1aec2..00000000000 --- a/doc/legacy/get_put_api_using_xattr.txt +++ /dev/null @@ -1,22 +0,0 @@ -GlusterFS get/put API interface provided through extended attributes: - -API usage: - int put(dirpath/filename, data): setfattr -n glusterfs.file.<filename> -v <data> <dirpath> - void *get(dirpath/filename): getfattr -n glusterfs.file.<filename> <dirpath> - - -internals: -* unify handling setxattr/getxattr - - setxattr - unify's setxattr forwards setxattr call to all the child nodes with XATTR_REPLACE flag, except namespace. setxattr will succeeds only on the child node on which the file already exists. if the setxattr operation fails on all child nodes, it indicates that the file does not already exist on any of the child nodes. unify follows the same rules as it follows for create, but using setxattr call itself with XATTR_CREATE flag. unify sends a setxattr to namespace first, with zero length data. if namespace setxattr succeeds, unify schedules setxattr to one of the child nodes. - - - getxattr - unify's getxattr forwards getxattr call to all the child nodes. wait for completion of operation on all the child nodes, and returns success if getxattr succeeded one child node. - -* posix handling setxattr/getxattr - - setxattr - posix setxattr does a open with O_CREAT|O_TRUNC on the <path>/<name>, writes value of the setxattr as data into the file and closes the file. when data is null, posix setxattr avoids doing write. file is closed after write. - - - getxattr - posix getxattr does open with O_RDONLY on the <path>/<name>, reads the complete content of the file. file is closed after read. - |