MCPcopy Create free account
hub / github.com/prometheus/procfs / MountStats

Method MountStats

proc.go:269–277  ·  view source on GitHub ↗

MountStats retrieves statistics and configuration for mount points in a process's namespace.

()

Source from the content-addressed store, hash-verified

267// MountStats retrieves statistics and configuration for mount points in a
268// process's namespace.
269func (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.

Callers 1

TestMountStatsFunction · 0.80

Calls 2

pathMethod · 0.95
parseMountStatsFunction · 0.85

Tested by 1

TestMountStatsFunction · 0.64