]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/cephfs: implement conf_parse_argv
authorJohn Spray <john.spray@redhat.com>
Tue, 23 Sep 2014 11:20:42 +0000 (12:20 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 8 Oct 2014 10:58:19 +0000 (11:58 +0100)
So that when using `ceph` we can pass through
--debug-x args etc.

Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/cephfs.py

index 60849aeb75e8715e7da2056b507af4342ec8399e..5f9859cf718470b7cf95d71de6a3d87dd39faf84 100644 (file)
@@ -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.