()
| 365 | } |
| 366 | |
| 367 | func (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 | |
| 378 | func (p linux) GetAgentSettingsPath(tmpfs bool) string { |
| 379 | if tmpfs { |
nothing calls this directly
no test coverage detected