MountStats retrieves statistics and configuration for mount points in a process's namespace.
()
| 267 | // MountStats retrieves statistics and configuration for mount points in a |
| 268 | // process's namespace. |
| 269 | func (p Proc) MountStats() ([]*Mount, error) { |
| 270 | f, err := os.Open(p.path("mountstats")) |
| 271 | if err != nil { |
| 272 | return nil, err |
| 273 | } |
| 274 | defer f.Close() |
| 275 | |
| 276 | return parseMountStats(f) |
| 277 | } |
| 278 | |
| 279 | // MountInfo retrieves mount information for mount points in a |
| 280 | // process's namespace. |