private List<VNXFileSystem> discoverAllFileSystems(StorageSystem system) throws VNXFileCollectionException, VNXException {
  List<VNXFileSystem> fileSystems=new ArrayList<VNXFileSystem>();
  _logger.info("Start FileSystem discovery for storage system {}",system.getId());
  try {
    List<VNXFileSystem> vnxFileSystems=getAllFileSystem(system);
    _logger.info("Number filesytems found: {}",vnxFileSystems.size());
    if (vnxFileSystems != null) {
      for (      VNXFileSystem vnxfs : vnxFileSystems) {
        FileShare fs=null;
        URIQueryResultList results=new URIQueryResultList();
        String fsNativeGuid=NativeGUIDGenerator.generateNativeGuid(system,vnxfs.getFsId() + "",NativeGUIDGenerator.FILESYSTEM);
        if (checkStorageFileSystemExistsInDB(fsNativeGuid)) {
          continue;
        }
        vnxfs.setFsNativeGuid(fsNativeGuid);
        fileSystems.add(vnxfs);
      }
    }
    _logger.info("Number of FileSystem found {} and they are : ",fileSystems.size());
  }
 catch (  IOException e) {
    _logger.error("I/O Exception: Discovery of FileSystem failed for storage system {} for {}",system.getId(),e.getMessage());
    VNXFileCollectionException vnxe=new VNXFileCollectionException("Storage FileSystem discovery error for storage system " + system.getId());
    vnxe.initCause(e);
    throw vnxe;
  }
  _logger.info("Storage FilesSystem discovery for storage system {} complete",system.getId());
  return fileSystems;
}

private List < VNXFileSystem > discoverAllFileSystems ( StorageSystem system ) throws VNXFileCollectionException , VNXException { List < VNXFileSystem > fileSystems = new ArrayList < VNXFileSystem > ( ) ; _logger . info ( "Start FileSystem discovery for storage system {}" , system . getId ( ) ) ; try { List < VNXFileSystem > vnxFileSystems = getAllFileSystem ( system ) ; _logger . info ( "Number filesytems found: {}" , vnxFileSystems . size ( ) ) ; if ( vnxFileSystems != null ) { for ( VNXFileSystem vnxfs : vnxFileSystems ) { FileShare fs = null ; URIQueryResultList results = new URIQueryResultList ( ) ; String fsNativeGuid = NativeGUIDGenerator . generateNativeGuid ( system , vnxfs . getFsId ( ) + "" , NativeGUIDGenerator . FILESYSTEM ) ; if ( checkStorageFileSystemExistsInDB ( fsNativeGuid ) ) { continue ; } vnxfs . setFsNativeGuid ( fsNativeGuid ) ; fileSystems . add ( vnxfs ) ; } } _logger . info ( "Number of FileSystem found {} and they are : " , fileSystems . size ( ) ) ; } catch ( IOException e ) { _logger . error ( "I/O Exception: Discovery of FileSystem failed for storage system {} for {}" , system . getId ( ) , e . getMessage ( ) ) ; VNXFileCollectionException vnxe = new VNXFileCollectionException ( "Storage FileSystem discovery error for storage system " + system . getId ( ) ) ; vnxe . initCause ( e ) ; throw vnxe ; } _logger . info ( "Storage FilesSystem discovery for storage system {} complete" , system . getId ( ) ) ; return fileSystems ; }
retrieve the filesystem for the specified vnx file storage array
