File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
plugins/backup/nas/src/main/java/org/apache/cloudstack/backup Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments