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: v15.2.8~5^2~1^2~21^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca232d366d4060f4bb89ad1bb4eb15e7c789464d;p=ceph.git qa: use null mode to prevent undesired changes to mountpoint Signed-off-by: Patrick Donnelly (cherry picked from commit 2432871a1ba41223c52bf59fd12f1b8f53c03bda) Conflicts: qa/tasks/cephfs/fuse_mount.py --- diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index 57c59acabbb5..1f5fe1b0b663 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -54,7 +54,9 @@ class FuseMount(CephFSMount): log.info('Mounting ceph-fuse client.{id} at {remote} {mnt}...'.format( id=self.client_id, remote=self.client_remote, mnt=self.mountpoint)) - self.client_remote.run(args=['mkdir', '-p', self.mountpoint], + # Use 0000 mode to prevent undesired modifications to the mountpoint on + # the local file system. + self.client_remote.run(args=['mkdir', '-m', '0000', '-p', self.mountpoint], timeout=(15*60), cwd=self.test_dir) run_cmd = [