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

Function NewDefaultFS

bcache/get.go:36–38  ·  view source on GitHub ↗

NewDefaultFS returns a new Bcache using the default sys fs mount point. It will error if the mount point can't be read.

()

Source from the content-addressed store, hash-verified

34// NewDefaultFS returns a new Bcache using the default sys fs mount point. It will error
35// if the mount point can't be read.
36func NewDefaultFS() (FS, error) {
37 return NewFS(fs.DefaultSysMountPoint)
38}
39
40// NewFS returns a new Bcache using the given sys fs mount point. It will error
41// if the mount point can't be read.

Callers

nothing calls this directly

Calls 1

NewFSFunction · 0.70

Tested by

no test coverage detected