void ceph_shutdown(ceph_mount_info *cmount)
int ceph_getaddrs(ceph_mount_info* cmount, char** addrs)
+ int64_t ceph_get_fs_cid(ceph_mount_info *cmount)
int ceph_conf_read_file(ceph_mount_info *cmount, const char *path_list)
int ceph_conf_parse_argv(ceph_mount_info *cmount, int argc, const char **argv)
int ceph_conf_get(ceph_mount_info *cmount, const char *option, char *buf, size_t len)
for key, value in conf.items():
self.conf_set(key, value)
+ def get_fscid(self):
+ """
+ Return the file system id for this fs client.
+ """
+ self.require_state("mounted")
+ with nogil:
+ ret = ceph_get_fs_cid(self.cluster)
+ if ret < 0:
+ raise make_ex(ret, "error fetching fscid")
+ return ret
+
def get_addrs(self):
"""
Get associated client addresses with this RADOS session.
int ceph_getaddrs(ceph_mount_info* cmount, char** addrs):
pass
+ int64_t ceph_get_fs_cid(ceph_mount_info *cmount):
+ pass
int ceph_conf_read_file(ceph_mount_info *cmount, const char *path_list):
pass
int ceph_conf_parse_argv(ceph_mount_info *cmount, int argc, const char **argv):