diff options
Diffstat (limited to 'src/include/cephfs/libcephfs.h')
-rw-r--r-- | src/include/cephfs/libcephfs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index 71bf25f6aed..9cf66049d4d 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -937,6 +937,26 @@ int ceph_get_local_osd(struct ceph_mount_info *cmount); /** @} default_filelayout */ +/** + * Get the capabilities currently issued to the client. + * + * @param cmount the ceph mount handle to use. + * @param fd the file descriptor to get issued + * @returns the current capabilities issued to this client + * for the open file + */ +int ceph_debug_get_fd_caps(struct ceph_mount_info *cmount, int fd); + +/** + * Get the capabilities currently issued to the client. + * + * @param cmount the ceph mount handle to use. + * @param the path to the file + * @returns the current capabilities issued to this client + * for the file + */ +int ceph_debug_get_file_caps(struct ceph_mount_info *cmount, const char *path); + #ifdef __cplusplus } #endif |