]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/ceph_volume_client: allow volume_client to
authorRamana Raja <rraja@redhat.com>
Thu, 14 Feb 2019 09:25:24 +0000 (14:55 +0530)
committerRamana Raja <rraja@redhat.com>
Thu, 14 Feb 2019 09:51:43 +0000 (15:21 +0530)
... mount a specificied ceph filesystem.

Signed-off-by: Ramana Raja <rraja@redhat.com>
src/pybind/ceph_volume_client.py

index 72b7a00447235590fbcb7fbca6b51377ca7dd204..9a6320493fe825f80c08770d017673396133627a 100644 (file)
@@ -244,13 +244,15 @@ class CephFSVolumeClient(object):
     DEFAULT_NS_PREFIX = "fsvolumens_"
 
     def __init__(self, auth_id=None, conf_path=None, cluster_name=None,
-                 volume_prefix=None, pool_ns_prefix=None, rados=None):
+                 volume_prefix=None, pool_ns_prefix=None, rados=None,
+                 fs_name=None):
         """
         Either set all three of ``auth_id``, ``conf_path`` and
         ``cluster_name`` (rados constructed on connect), or
         set ``rados`` (existing rados instance).
         """
         self.fs = None
+        self.fs_name = fs_name
         self.connected = False
 
         self.conf_path = conf_path
@@ -474,7 +476,7 @@ class CephFSVolumeClient(object):
             self.evict(premount_evict)
             log.debug("Premount eviction of {0} completes".format(premount_evict))
         log.debug("CephFS mounting...")
-        self.fs.mount()
+        self.fs.mount(filesystem_name=self.fs_name)
         log.debug("Connection to cephfs complete")
 
         # Recover from partial auth updates due to a previous