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)
int ceph_conf_set(ceph_mount_info *cmount, const char *option, const char *value)
+ int ceph_set_mount_timeout(ceph_mount_info *cmount, uint32_t timeout)
int ceph_mount(ceph_mount_info *cmount, const char *root)
int ceph_select_filesystem(ceph_mount_info *cmount, const char *fs_name)
if ret != 0:
raise make_ex(ret, "error calling conf_set")
+ def set_mount_timeout(self, timeout):
+ """
+ Set mount timeout
+
+ :param timeout: mount timeout
+ """
+ self.require_state("configuring", "initialized")
+ if not isinstance(timeout, int):
+ raise TypeError('timeout must be an integer')
+ if timeout < 0:
+ raise make_ex(CEPHFS_EINVAL, 'timeout must be greater than or equal to 0')
+ cdef:
+ uint32_t _timeout = timeout
+ with nogil:
+ ret = ceph_set_mount_timeout(self.cluster, _timeout)
+ if ret != 0:
+ raise make_ex(ret, "error setting mount timeout")
+
def init(self):
"""
Initialize the filesystem client (but do not mount the filesystem yet)
pass
int ceph_conf_set(ceph_mount_info *cmount, const char *option, const char *value):
pass
+ int ceph_set_mount_timeout(ceph_mount_info *cmount, uint32_t timeout):
+ pass
int ceph_mount(ceph_mount_info *cmount, const char *root):
pass