diff options
author | Jiffin Tony Thottan <jthottan@redhat.com> | 2015-03-11 14:20:48 +0530 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2015-05-05 18:05:24 -0700 |
commit | fa0ad231745846918b2625d0e1a89c0a5c3c24dc (patch) | |
tree | 35ff8022e965847d19198277414636f785172e61 /api/src/glfs-internal.h | |
parent | a5fc34604aef973606431bf7d873abb91ee03d5a (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-internal.h')
-rw-r--r-- | api/src/glfs-internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api/src/glfs-internal.h b/api/src/glfs-internal.h index 972f2e4cf49..275f8d1534b 100644 --- a/api/src/glfs-internal.h +++ b/api/src/glfs-internal.h @@ -342,4 +342,12 @@ glfs_h_poll_cache_invalidation (struct glfs *fs, struct callback_arg *up_arg, struct gf_upcall *upcall_data); +ssize_t +glfs_anonymous_preadv (struct glfs *fs, struct glfs_object *object, + const struct iovec *iovec, int iovcnt, + off_t offset, int flags); +ssize_t +glfs_anonymous_pwritev (struct glfs *fs, struct glfs_object *object, + const struct iovec *iovec, int iovcnt, + off_t offset, int flags); #endif /* !_GLFS_INTERNAL_H */ |