From: Patrick Donnelly Date: Mon, 5 Oct 2020 17:40:42 +0000 (-0700) Subject: qa: use null mode to prevent undesired changes to mountpoint X-Git-Tag: v16.1.0~814^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2432871a1ba41223c52bf59fd12f1b8f53c03bda;p=ceph.git qa: use null mode to prevent undesired changes to mountpoint Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index e53ba680b944..0e872fbad95f 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -63,11 +63,13 @@ class FuseMount(CephFSMount): self.client_config.get('valgrind') is not None: daemon_signal = 'term' + # Use 0000 mode to prevent undesired modifications to the mountpoint on + # the local file system. + script = f'mkdir -m 0000 -p -v {self.hostfs_mntpt}'.split() stderr = StringIO() try: - self.client_remote.run(args=['mkdir', '-p', self.hostfs_mntpt], - timeout=(15*60), cwd=self.test_dir, - stderr=StringIO()) + self.client_remote.run(args=script, timeout=(15*60), + cwd=self.test_dir, stderr=StringIO()) except CommandFailedError: if 'file exists' not in stderr.getvalue().lower(): raise