diff options
author | Soumya Koduri <skoduri@redhat.com> | 2018-01-10 15:01:59 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2018-01-26 12:33:42 +0000 |
commit | 1a519f4bf960c6aafecfb189e8ec8b153abcf6ce (patch) | |
tree | c9f863b427ca03a1ba6321403314a3766b136abb /api/src/glfs-handles.h | |
parent | cd66e4edae84033f426820e359927272ad4ae641 (diff) |
gfapi : New APIs have been added to use lease feature in gluster
Following APIs glfs_h_lease(), glfs_lease() added, so that gfapi applications
can set and get lease which enables more efficient client side caching.
Updates: #350
Change-Id: Iede85be9af1d4df969b890d0937ed0afa4ca6596
Signed-off-by: Poornima G <pgurusid@redhat.com>
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
Diffstat (limited to 'api/src/glfs-handles.h')
-rw-r--r-- | api/src/glfs-handles.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/src/glfs-handles.h b/api/src/glfs-handles.h index 211595933fc..97c058a11c7 100644 --- a/api/src/glfs-handles.h +++ b/api/src/glfs-handles.h @@ -328,6 +328,10 @@ struct glfs_object* glfs_object_copy (struct glfs_object *src); GFAPI_PUBLIC(glfs_object_copy, 3.11.0); +int glfs_h_lease (struct glfs *fs, struct glfs_object *object, + struct glfs_lease *lease) __THROW + GFAPI_PUBLIC(glfs_h_lease, 4.0.0); + __END_DECLS #endif /* !_GLFS_HANDLES_H */ |