code: func (os *OpenStack) DiskIsAttachedByName(nodeName types.NodeName, volumeID string) (bool, string, error) {
  	cClient, err := os.NewComputeV2()
  	if err != nil {
  		return false, "", err
  	}
  	srv, err := getServerByName(cClient, nodeName)
  	if err != nil {
  		if err == ErrNotFound {
  			// instance not found anymore in cloudprovider, assume that cinder is detached
  			return false, "", nil
  		}
  		return false, "", err
  	}
  	instanceID := "/" + srv.ID
  	if ind := strings.LastIndex(instanceID, "/"); ind >= 0 {
  		instanceID = instanceID[(ind + 1):]
  	}
  	attached, err := os.DiskIsAttached(instanceID, volumeID)
  	return attached, instanceID, err
  }
docs: // DiskIsAttachedByName queries if a volume is attached to a compute instance by name