cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject git commit: updated refs/heads/master to 2f1d4dd
Date Thu, 25 Jul 2013 01:36:36 GMT
Updated Branches:
  refs/heads/master 44cae4601 -> 2f1d4dd0b


CLOUDSTACK-3665:KVM specific issue in create volume from snapshot.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2f1d4dd0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2f1d4dd0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2f1d4dd0

Branch: refs/heads/master
Commit: 2f1d4dd0ba894d1a418ac3c5c7812bde20fe18f5
Parents: 44cae46
Author: Min Chen <min.chen@citrix.com>
Authored: Wed Jul 24 18:34:59 2013 -0700
Committer: Min Chen <min.chen@citrix.com>
Committed: Wed Jul 24 18:36:28 2013 -0700

----------------------------------------------------------------------
 .../cloud/hypervisor/kvm/storage/KVMStorageProcessor.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2f1d4dd0/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
index 25c94f7..3a5e803 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
@@ -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);


Mime
View raw message