]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: allow specifying mountpoints for FUSE mounts
authorRishabh Dave <ridave@redhat.com>
Tue, 30 Jul 2019 11:27:31 +0000 (16:57 +0530)
committerVicente Cheng <freeze.bilsted@gmail.com>
Fri, 3 Jul 2020 08:54:38 +0000 (08:54 +0000)
Allow specifying the directory in CephFS that should be FUSE mounted at
the given path.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 48a95d00ba19e4ffa10a950444073135e83517bd)

qa/tasks/cephfs/fuse_mount.py

index 057a056887dac6ccd228a6ffd35b614c453bcd52..7bb5e5160915be607ddfd5353b12735ec26aedc8 100644 (file)
@@ -27,7 +27,9 @@ class FuseMount(CephFSMount):
         self.inst = None
         self.addr = None
 
-    def mount(self, mount_path=None, mount_fs_name=None):
+    def mount(self, mount_path=None, mount_fs_name=None, mountpoint=None):
+        if mountpoint is not None:
+            self.mountpoint = mountpoint
         self.setupfs(name=mount_fs_name)
 
         try: