From 48a95d00ba19e4ffa10a950444073135e83517bd Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 30 Jul 2019 16:57:31 +0530 Subject: [PATCH] qa/cephfs: allow specifying mountpoints for FUSE mounts Allow specifying the directory in CephFS that should be FUSE mounted at the given path. Signed-off-by: Rishabh Dave --- qa/tasks/cephfs/fuse_mount.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index 71f7eb80629..f02e437cd32 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -26,7 +26,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: -- 2.39.5