( runner boshsys.CmdRunner, mountsSearcher MountsSearcher, unmountRetrySleep time.Duration, )
| 17 | } |
| 18 | |
| 19 | func 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 | |
| 32 | func (m linuxMounter) Mount(partitionPath, mountPoint string, mountOptions ...string) error { |
| 33 | return m.MountFilesystem(partitionPath, mountPoint, "", mountOptions...) |
no outgoing calls
no test coverage detected