File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
plugins/backup/nas/src/main/java/org/apache/cloudstack/backup Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -246,9 +246,13 @@ private List<String> getVolumePaths(List<VolumeVO> volumes) {
246
246
if (Objects .isNull (storagePool )) {
247
247
throw new CloudRuntimeException ("Unable to find storage pool associated to the volume" );
248
248
}
249
- String volumePathPrefix = String . format ( "/mnt/%s" , storagePool . getUuid ()) ;
249
+ String volumePathPrefix ;
250
250
if (ScopeType .HOST .equals (storagePool .getScope ())) {
251
251
volumePathPrefix = storagePool .getPath ();
252
+ } else if (Storage .StoragePoolType .SharedMountPoint .equals (storagePool .getPoolType ())) {
253
+ volumePathPrefix = storagePool .getPath ();
254
+ } else {
255
+ volumePathPrefix = String .format ("/mnt/%s" , storagePool .getUuid ());
252
256
}
253
257
volumePaths .add (String .format ("%s/%s" , volumePathPrefix , volume .getPath ()));
254
258
}
You can’t perform that action at this time.
0 commit comments