MCPcopy Create free account
hub / github.com/apache/cloudstack / is_mounted

Function is_mounted

systemvm/debian/opt/cloud/bin/cs/CsHelper.py:61–66  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

59
60
61def is_mounted(name):
62 for i in execute("mount"):
63 vals = i.lstrip().split()
64 if vals[0] == "tmpfs" and vals[2] == name:
65 return True
66 return False
67
68
69def mount_tmpfs(name):

Callers 2

mount_tmpfsFunction · 0.85
umount_tmpfsFunction · 0.85

Calls 1

executeFunction · 0.70

Tested by

no test coverage detected