Get list of where hugepage filesystem is mounted
()
| 159 | |
| 160 | |
| 161 | def 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 | |
| 173 | def mount_huge(pagesize, mountpoint, user, group): |
no outgoing calls
no test coverage detected