(diskSettings boshsettings.DiskSettings)
| 1507 | } |
| 1508 | |
| 1509 | func (p linux) UnmountPersistentDisk(diskSettings boshsettings.DiskSettings) (bool, error) { |
| 1510 | p.logger.Debug(logTag, "Unmounting persistent disk %+v", diskSettings) |
| 1511 | |
| 1512 | realPath, timedOut, err := p.devicePathResolver.GetRealDevicePath(diskSettings) |
| 1513 | if timedOut { |
| 1514 | return false, nil |
| 1515 | } |
| 1516 | if err != nil { |
| 1517 | return false, bosherr.WrapError(err, "Getting real device path") |
| 1518 | } |
| 1519 | |
| 1520 | if !p.options.UsePreformattedPersistentDisk { |
| 1521 | realPath = p.partitionPath(realPath, 1) |
| 1522 | } |
| 1523 | |
| 1524 | return p.diskManager.GetMounter().Unmount(realPath) |
| 1525 | } |
| 1526 | |
| 1527 | func (p linux) GetEphemeralDiskPath(diskSettings boshsettings.DiskSettings) (string, error) { |
| 1528 | realPath, _, err := p.devicePathResolver.GetRealDevicePath(diskSettings) |
nothing calls this directly
no test coverage detected