Whamcloud - gitweb
LU-5666 llapi: LLAPI helpers for group lock.
[fs/lustre-release.git] / lustre / include / lustre / lustreapi.h
index 5cccbf4..392ba5d 100644 (file)
@@ -375,6 +375,17 @@ extern int llapi_json_add_item(struct llapi_json_item_list **item_list,
 extern int llapi_json_write_list(struct llapi_json_item_list **item_list,
                                 FILE *fp);
 
+/* File lease */
+extern int llapi_lease_get(int fd, int mode);
+extern int llapi_lease_check(int fd);
+extern int llapi_lease_put(int fd);
+
+/* Group lock */
+int llapi_group_lock(int fd, int gid);
+int llapi_group_unlock(int fd, int gid);
+
+/** @} llapi */
+
 /* llapi_layout user interface */
 
 /** Opaque data type abstracting the layout of a Lustre file. */