private boolean isNativeVolumeExpansionSupported(Volume vplexVolume,Long newSize){
  boolean useNativeVolumeExpansion=true;
  StringSet assocVolumeIds=vplexVolume.getAssociatedVolumes();
  if (null == assocVolumeIds) {
    s_logger.warn("VPLEX volume {} has no backend volumes. It was probably ingested 'Virtual Volume Only'.",vplexVolume.forDisplay());
    useNativeVolumeExpansion=false;
  }
 else {
    for (    String assocVolumeId : assocVolumeIds) {
      Volume assocVolume=_permissionsHelper.getObjectById(URI.create(assocVolumeId),Volume.class);
      try {
        super.verifyVolumeExpansionRequest(assocVolume,newSize);
      }
 catch (      Exception e) {
        useNativeVolumeExpansion=false;
        break;
      }
    }
  }
  return useNativeVolumeExpansion;
}

private boolean isNativeVolumeExpansionSupported ( Volume vplexVolume , Long newSize ) { boolean useNativeVolumeExpansion = true ; StringSet assocVolumeIds = vplexVolume . getAssociatedVolumes ( ) ; if ( null == assocVolumeIds ) { s_logger . warn ( "VPLEX volume {} has no backend volumes. It was probably ingested 'Virtual Volume Only'." , vplexVolume . forDisplay ( ) ) ; useNativeVolumeExpansion = false ; } else { for ( String assocVolumeId : assocVolumeIds ) { Volume assocVolume = _permissionsHelper . getObjectById ( URI . create ( assocVolumeId ) , Volume . class ) ; try { super . verifyVolumeExpansionRequest ( assocVolume , newSize ) ; } catch ( Exception e ) { useNativeVolumeExpansion = false ; break ; } } } return useNativeVolumeExpansion ; }
determines if the vplex volume can be expanded by natively expanding the backend volumes .
