MCPcopy Create free account
hub / github.com/cloudfoundry/bosh-agent / NewLinuxMounter

Function NewLinuxMounter

platform/disk/linux_mounter.go:19–30  ·  view source on GitHub ↗
(
	runner boshsys.CmdRunner,
	mountsSearcher MountsSearcher,
	unmountRetrySleep time.Duration,
)

Source from the content-addressed store, hash-verified

17}
18
19func NewLinuxMounter(
20 runner boshsys.CmdRunner,
21 mountsSearcher MountsSearcher,
22 unmountRetrySleep time.Duration,
23) Mounter {
24 return linuxMounter{
25 runner: runner,
26 mountsSearcher: mountsSearcher,
27 maxUnmountRetries: 600,
28 unmountRetrySleep: unmountRetrySleep,
29 }
30}
31
32func (m linuxMounter) Mount(partitionPath, mountPoint string, mountOptions ...string) error {
33 return m.MountFilesystem(partitionPath, mountPoint, "", mountOptions...)

Callers 3

NewLinuxDiskManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected