Skip to content

Commit 9b6a991

Browse files
committed
Revert "Update NASBackupProvider.java"
This reverts commit 7ff5692.
1 parent 615d183 commit 9b6a991

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/backup/nas/src/main/java/org/apache/cloudstack/backup/NASBackupProvider.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,9 @@ private List<String> getVolumePaths(List<VolumeVO> volumes) {
245245
if (Objects.isNull(storagePool)) {
246246
throw new CloudRuntimeException("Unable to find storage pool associated to the volume");
247247
}
248-
String volumePathPrefix = "";
248+
String volumePathPrefix = String.format("/mnt/%s", storagePool.getUuid());
249249
if (ScopeType.HOST.equals(storagePool.getScope())) {
250250
volumePathPrefix = storagePool.getPath();
251-
} else if (Storage.StoragePoolType.SharedMountPoint.equals(storagePool.getPoolType())) {
252-
volumePathPrefix = storagePool.getPath();
253-
} else {
254-
volumePathPrefix = String.format("/mnt/%s", storagePool.getUuid());
255251
}
256252
volumePaths.add(String.format("%s/%s", volumePathPrefix, volume.getPath()));
257253
}

0 commit comments

Comments
 (0)