in gce-containers-startup/volumes/volumes.go [518:529]
func (env Env) checkDeviceNotMounted(devicePath string) error {
const lsblkMountPoint string = "MOUNTPOINT"
if mountPoint, err := env.getSinglePropertyFromDeviceWithLsblk(devicePath, lsblkMountPoint); err != nil {
return err
} else {
if mountPoint == "" {
return nil
} else {
return fmt.Errorf("Device %s is already mounted at %s", devicePath, mountPoint)
}
}
}