Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
61
def
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
69
def
mount_tmpfs(name):
Callers
2
mount_tmpfs
Function · 0.85
umount_tmpfs
Function · 0.85
Calls
1
execute
Function · 0.70
Tested by
no test coverage detected