mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-3665:KVM specific issue in create volume from snapshot.
This commit is contained in:
parent
44cae46014
commit
2f1d4dd0ba
@ -834,10 +834,10 @@ public class KVMStorageProcessor implements StorageProcessor {
|
||||
|
||||
NfsTO nfsImageStore = (NfsTO) imageStore;
|
||||
|
||||
String snapshotPath = snapshot.getPath();
|
||||
int index = snapshotPath.lastIndexOf("/");
|
||||
snapshotPath = snapshotPath.substring(0, index);
|
||||
String snapshotName = snapshotPath.substring(index + 1);
|
||||
String snapshotFullPath = snapshot.getPath();
|
||||
int index = snapshotFullPath.lastIndexOf("/");
|
||||
String snapshotPath = snapshotFullPath.substring(0, index);
|
||||
String snapshotName = snapshotFullPath.substring(index + 1);
|
||||
KVMStoragePool secondaryPool = storagePoolMgr.getStoragePoolByURI(nfsImageStore.getUrl() + File.separator
|
||||
+ snapshotPath);
|
||||
KVMPhysicalDisk snapshotDisk = secondaryPool.getPhysicalDisk(snapshotName);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user