code: func (os *OpenStack) DisksAreAttachedByName(nodeName types.NodeName, volumeIDs []string) (map[string]bool, error) {
  	attached := make(map[string]bool)
  	cClient, err := os.NewComputeV2()
  	if err != nil {
  		return attached, err
  	}
  	srv, err := getServerByName(cClient, nodeName)
  	if err != nil {
  		if err == ErrNotFound {
  			// instance not found anymore, mark all volumes as detached
  			for _, volumeID := range volumeIDs {
  				attached[volumeID] = false
  			}
  			return attached, nil
  		}
  		return attached, err
  	}
  	instanceID := "/" + srv.ID
  	if ind := strings.LastIndex(instanceID, "/"); ind >= 0 {
  		instanceID = instanceID[(ind + 1):]
  	}
  	return os.DisksAreAttached(instanceID, volumeIDs)
  }
docs: // DisksAreAttachedByName queries if a list of volumes are attached to a compute instance by name