Whamcloud - gitweb
LU-4928 utils: LLAPI helpers for file leases
[fs/lustre-release.git] / lustre / include / lustre / lustreapi.h
index 5cccbf4..380dfc5 100644 (file)
@@ -375,6 +375,13 @@ 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);
+
+/** @} llapi */
+
 /* llapi_layout user interface */
 
 /** Opaque data type abstracting the layout of a Lustre file. */