mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
pybind/cephfs: implement conf_parse_argv
So that when using `ceph` we can pass through --debug-x args etc. Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
parent
1eb93f5be4
commit
0909fe4faf
@ -165,6 +165,14 @@ class LibCephFS(object):
|
||||
if ret != 0:
|
||||
raise make_ex(ret, "error calling conf_read_file")
|
||||
|
||||
def conf_parse_argv(self, argv):
|
||||
self.require_state("configuring")
|
||||
c_argv = (c_char_p * len(argv))(*argv)
|
||||
ret = self.libcephfs.ceph_conf_parse_argv(
|
||||
self.cluster, len(argv), c_argv)
|
||||
if ret != 0:
|
||||
raise make_ex(ret, "error calling conf_parse_argv")
|
||||
|
||||
def shutdown(self):
|
||||
"""
|
||||
Unmount and destroy the ceph mount handle.
|
||||
|
Loading…
Reference in New Issue
Block a user