MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_mountpoints

Function get_mountpoints

dpdk/usertools/dpdk-hugepages.py:161–170  ·  view source on GitHub ↗

Get list of where hugepage filesystem is mounted

()

Source from the content-addressed store, hash-verified

159
160
161def get_mountpoints():
162 '''Get list of where hugepage filesystem is mounted'''
163 mounted = []
164 with open('/proc/mounts') as mounts:
165 for line in mounts:
166 fields = line.split()
167 if fields[2] != 'hugetlbfs':
168 continue
169 mounted.append(fields[1])
170 return mounted
171
172
173def mount_huge(pagesize, mountpoint, user, group):

Callers 3

mount_hugeFunction · 0.70
umount_hugeFunction · 0.70
show_mountFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected