From 0909fe4faf8e7cb0ace82b2a769e0971953ebe2d Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 23 Sep 2014 12:20:42 +0100 Subject: [PATCH] pybind/cephfs: implement conf_parse_argv So that when using `ceph` we can pass through --debug-x args etc. Signed-off-by: John Spray --- src/pybind/cephfs.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pybind/cephfs.py b/src/pybind/cephfs.py index 60849aeb75e..5f9859cf718 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. -- 2.47.3