MCPcopy Create free account
hub / github.com/ceph/ceph / create_destroy

Method create_destroy

qa/tasks/cephfs/mount.py:779–790  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

777 return self.run_shell(args=args, omit_sudo=False).stdout.getvalue().strip()
778
779 def create_destroy(self):
780 assert(self.is_mounted())
781
782 filename = "{0} {1}".format(datetime.datetime.now(), self.client_id)
783 log.debug("Creating test file {0}".format(filename))
784 self.client_remote.run(args=[
785 'touch', os.path.join(self.hostfs_mntpt, filename)
786 ])
787 log.debug("Deleting test file {0}".format(filename))
788 self.client_remote.run(args=[
789 'rm', '-f', os.path.join(self.hostfs_mntpt, filename)
790 ])
791
792 def _run_python(self, pyscript, py_version='python3', sudo=False, timeout=None):
793 args, omit_sudo = [], True

Calls 6

is_mountedMethod · 0.95
formatMethod · 0.45
nowMethod · 0.45
debugMethod · 0.45
runMethod · 0.45
joinMethod · 0.45