public static boolean isVolumeBuiltOnBlockSnapshot(DbClient dbClient,Volume vplexVolume){
  boolean isBuiltOnSnapshot=false;
  Volume srcSideBackendVolume=getVPLEXBackendVolume(vplexVolume,true,dbClient,false);
  if (srcSideBackendVolume != null) {
    String nativeGuid=srcSideBackendVolume.getNativeGuid();
    List<BlockSnapshot> snapshots=CustomQueryUtility.getActiveBlockSnapshotByNativeGuid(dbClient,nativeGuid);
    if (!snapshots.isEmpty()) {
      isBuiltOnSnapshot=true;
    }
  }
  return isBuiltOnSnapshot;
}

public static boolean isVolumeBuiltOnBlockSnapshot ( DbClient dbClient , Volume vplexVolume ) { boolean isBuiltOnSnapshot = false ; Volume srcSideBackendVolume = getVPLEXBackendVolume ( vplexVolume , true , dbClient , false ) ; if ( srcSideBackendVolume != null ) { String nativeGuid = srcSideBackendVolume . getNativeGuid ( ) ; List < BlockSnapshot > snapshots = CustomQueryUtility . getActiveBlockSnapshotByNativeGuid ( dbClient , nativeGuid ) ; if ( ! snapshots . isEmpty ( ) ) { isBuiltOnSnapshot = true ; } } return isBuiltOnSnapshot ; }
determines if the passed vplex volume is built on top of a target volume for a block snapshot .
