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

Method SetupBoshSettingsDisk

platform/linux_platform.go:367–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365}
366
367func (p linux) SetupBoshSettingsDisk() (err error) {
368 agentSettingsTmpfsDir := filepath.Dir(p.GetAgentSettingsPath(true))
369
370 err = p.fs.MkdirAll(agentSettingsTmpfsDir, 0700)
371 if err != nil {
372 err = bosherr.WrapError(err, "Setting up Bosh Settings Disk")
373 return
374 }
375 return p.diskManager.GetMounter().MountTmpfs(agentSettingsTmpfsDir, "16m")
376}
377
378func (p linux) GetAgentSettingsPath(tmpfs bool) string {
379 if tmpfs {

Callers

nothing calls this directly

Calls 4

GetAgentSettingsPathMethod · 0.95
MkdirAllMethod · 0.80
MountTmpfsMethod · 0.65
GetMounterMethod · 0.65

Tested by

no test coverage detected