From: John Spray Date: Tue, 23 Sep 2014 11:20:42 +0000 (+0100) Subject: pybind/cephfs: implement conf_parse_argv X-Git-Tag: v0.88~97^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0909fe4faf8e7cb0ace82b2a769e0971953ebe2d;p=ceph.git pybind/cephfs: implement conf_parse_argv So that when using `ceph` we can pass through --debug-x args etc. Signed-off-by: John Spray --- diff --git a/src/pybind/cephfs.py b/src/pybind/cephfs.py index 60849aeb75e8..5f9859cf7184 100644 --- a/src/pybind/cephfs.py +++ b/src/pybind/cephfs.py @@ -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.