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/4.2 to 9f23b1c
Date Thu, 25 Jul 2013 01:35:39 GMT
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 <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: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);


Mime
View raw message