You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mc...@apache.org on 2013/07/25 03:35:39 UTC

git commit: updated refs/heads/4.2 to 9f23b1c

Updated Branches:
  refs/heads/4.2 bfe5a7c6f -> 9f23b1c0c


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/9f23b1c0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9f23b1c0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9f23b1c0

Branch: refs/heads/4.2
Commit: 9f23b1c0c1407baf5b7b11ec1f3112ff7bba201b
Parents: bfe5a7c
Author: Min Chen <mi...@citrix.com>
Authored: Wed Jul 24 18:34:59 2013 -0700
Committer: Min Chen <mi...@citrix.com>
Committed: Wed Jul 24 18:34:59 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/9f23b1c0/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 ea6460a..2f87ad4 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
@@ -839,10 +839,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);