summaryrefslogtreecommitdiffstats
path: root/api/src/glfs-handles.h
diff options
context:
space:
mode:
authorJiffin Tony Thottan <jthottan@redhat.com>2015-03-11 14:20:48 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-05-05 18:05:24 -0700
commitfa0ad231745846918b2625d0e1a89c0a5c3c24dc (patch)
tree35ff8022e965847d19198277414636f785172e61 /api/src/glfs-handles.h
parenta5fc34604aef973606431bf7d873abb91ee03d5a (diff)
libgfapi : anonymous fd support
Anonymous fd's are floating fd assigned to a glusterfs client without a explicit file open. Here either it will create a new anonymous fd or existing anonymous fd in the client stack for requested file.The anonymous fd's are mainly used for IO's. This patch introduces two api's glfs_h_anonymous_read and glfs_h_anonymous_write which performs read and write respectively Change-Id: Id646f2220e8387b2f8bb244c848dc1db6761444f BUG: 1204651 Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/9971 Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'api/src/glfs-handles.h')
-rw-r--r--api/src/glfs-handles.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/api/src/glfs-handles.h b/api/src/glfs-handles.h
index 28e9e79b9a3..19c4e8f7a62 100644
--- a/api/src/glfs-handles.h
+++ b/api/src/glfs-handles.h
@@ -310,6 +310,16 @@ glfs_h_acl_get (struct glfs *fs, struct glfs_object *object,
const acl_type_t type) __THROW;
GFAPI_PUBLIC(glfs_h_acl_get, 3.7.0);
+size_t
+glfs_h_anonymous_write (struct glfs *fs, struct glfs_object *object,
+ const void *buf, size_t count, off_t offset) __THROW
+ GFAPI_PUBLIC(glfs_h_anonymous_write, 3.7.0);
+
+ssize_t
+glfs_h_anonymous_read (struct glfs *fs, struct glfs_object *object,
+ const void *buf, size_t count, off_t offset) __THROW
+ GFAPI_PUBLIC(glfs_h_anonymous_read, 3.7.0);
+
__END_DECLS
#endif /* !_GLFS_HANDLES_H */