(diskSettings boshsettings.DiskSettings)
| 1610 | } |
| 1611 | |
| 1612 | func (p linux) IsPersistentDiskMounted(diskSettings boshsettings.DiskSettings) (bool, error) { |
| 1613 | p.logger.Debug(logTag, "Checking whether persistent disk %+v is mounted", diskSettings) |
| 1614 | realPath, timedOut, err := p.devicePathResolver.GetRealDevicePath(diskSettings) |
| 1615 | if timedOut { |
| 1616 | p.logger.Debug(logTag, "Timed out resolving device path for %+v, ignoring", diskSettings) |
| 1617 | return false, nil |
| 1618 | } |
| 1619 | if err != nil { |
| 1620 | return false, bosherr.WrapError(err, "Getting real device path") |
| 1621 | } |
| 1622 | |
| 1623 | if !p.options.UsePreformattedPersistentDisk { |
| 1624 | realPath = p.partitionPath(realPath, 1) |
| 1625 | } |
| 1626 | |
| 1627 | return p.diskManager.GetMounter().IsMounted(realPath) |
| 1628 | } |
| 1629 | |
| 1630 | func (p linux) StartMonit() error { |
| 1631 | err := p.GetServiceManager().Setup("monit") |
nothing calls this directly
no test coverage detected