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

Method open_no_data

qa/tasks/cephfs/mount.py:972–985  ·  view source on GitHub ↗

A pure metadata operation

(self, basename)

Source from the content-addressed store, hash-verified

970 ))
971
972 def open_no_data(self, basename):
973 """
974 A pure metadata operation
975 """
976 assert(self.is_mounted())
977
978 path = os.path.join(self.hostfs_mntpt, basename)
979
980 p = self._run_python(dedent(
981 """
982 f = open("{path}", 'w')
983 """.format(path=path)
984 ))
985 p.wait()
986
987 def open_background(self, basename="background_file", write=True, content="content"):
988 """

Callers

nothing calls this directly

Calls 5

is_mountedMethod · 0.95
_run_pythonMethod · 0.95
joinMethod · 0.45
formatMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected