fun isFileStoragePool(storagePool: StoragePool, dbClient: DbClient): Boolean { val storageSystemUri: URI = storagePool.getStorageDevice() val storageSystem: StorageSystem = dbClient.queryObject(StorageSystem::class.java, storageSystemUri) ArgValidator.checkEntity(storageSystem, storageSystemUri, false) val storageSystemType: StorageSystem.Type = StorageSystem.Type.valueOf(storageSystem.getSystemType()) return storageSystemType.equals(StorageSystem.Type.isilon) || storageSystemType.equals( StorageSystem.Type.vnxfile ) }
Finds if a pool is file storage pool