private List<String> checkPathsPerInitiator(int pathsPerInitiator,List<String> targetPathsList){
  log.debug("START - checkPathsPerInitiator");
  List<String> tmpTargetList=new ArrayList<String>();
  int targetPathsCount=targetPathsList.size();
  if (targetPathsCount == pathsPerInitiator) {
    tmpTargetList.addAll(targetPathsList);
  }
 else   if (targetPathsCount > pathsPerInitiator) {
    if (1 == pathsPerInitiator) {
      tmpTargetList.add(targetPathsList.get(0));
    }
 else {
      tmpTargetList.addAll(targetPathsList.subList(0,pathsPerInitiator));
    }
  }
 else {
    return null;
  }
  log.debug("END - checkPathsPerInitiator");
  return tmpTargetList;
}

private List < String > checkPathsPerInitiator ( int pathsPerInitiator , List < String > targetPathsList ) { log . debug ( "START - checkPathsPerInitiator" ) ; List < String > tmpTargetList = new ArrayList < String > ( ) ; int targetPathsCount = targetPathsList . size ( ) ; if ( targetPathsCount == pathsPerInitiator ) { tmpTargetList . addAll ( targetPathsList ) ; } else if ( targetPathsCount > pathsPerInitiator ) { if ( 1 == pathsPerInitiator ) { tmpTargetList . add ( targetPathsList . get ( 0 ) ) ; } else { tmpTargetList . addAll ( targetPathsList . subList ( 0 , pathsPerInitiator ) ) ; } } else { return null ; } log . debug ( "END - checkPathsPerInitiator" ) ; return tmpTargetList ; }
checks if there are number of targets matching paths per initiator assigned for the vpool .
