cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edi...@apache.org
Subject git commit: updated refs/heads/4.2 to 4f9af26
Date Wed, 06 Nov 2013 23:32:44 GMT
Updated Branches:
  refs/heads/4.2 004efe1c0 -> 4f9af26be


CLOUDSTACK-5065: isExternalSnapshot should return true for CLVM and RBD only


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

Branch: refs/heads/4.2
Commit: 4f9af26bea0c6d1da915df654b006c9235d1b866
Parents: 004efe1
Author: Edison Su <sudison@gmail.com>
Authored: Wed Nov 6 15:32:19 2013 -0800
Committer: Edison Su <sudison@gmail.com>
Committed: Wed Nov 6 15:32:32 2013 -0800

----------------------------------------------------------------------
 .../com/cloud/hypervisor/kvm/storage/LibvirtStoragePool.java  | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4f9af26b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStoragePool.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStoragePool.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStoragePool.java
index c0e1000..be922fe 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStoragePool.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStoragePool.java
@@ -170,11 +170,10 @@ public class LibvirtStoragePool implements KVMStoragePool {
 
     @Override
     public boolean isExternalSnapshot() {
-        if (this.type == StoragePoolType.Filesystem) {
-            return false;
+        if (this.type == StoragePoolType.CLVM || type == StoragePoolType.RBD) {
+            return true;
         }
-
-        return true;
+        return false;
     }
 
     @Override


Mime
View raw message