summaryrefslogtreecommitdiffstats
path: root/api/src/glfs.h
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-04-27 11:59:36 -0700
committerVijay Bellur <vbellur@redhat.com>2013-05-02 23:20:49 -0700
commit54b9cd3df357ac196af17f53282b3b1975dd4fb9 (patch)
treeaaa5cd8cdd22db32190536bbfab12562167ffcc9 /api/src/glfs.h
parentaec246459b4c82fd666a3de20a55700008a5f831 (diff)
gfapi: add new API glfs_set_xlator_option()
This is the equivalent of specifying --xlator-option command line argument to glusterfsd. Change-Id: I1171dd518a85db4bd456fa0790f450e889a956cd BUG: 953694 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/4927 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/src/glfs.h')
-rw-r--r--api/src/glfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/src/glfs.h b/api/src/glfs.h
index 7fecffb697a..aeabfdf0b4f 100644
--- a/api/src/glfs.h
+++ b/api/src/glfs.h
@@ -301,6 +301,9 @@ int glfs_close (glfs_fd_t *fd);
glfs_t *glfs_from_glfd (glfs_fd_t *fd);
+int glfs_set_xlator_option (glfs_t *fs, const char *xlator, const char *key,
+ const char *value);
+
typedef void (*glfs_io_cbk) (glfs_fd_t *fd, ssize_t ret, void *data);
// glfs_{read,write}[_async]