cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [1/2] git commit: updated refs/heads/4.5 to 940622c
Date Wed, 15 Apr 2015 06:18:53 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.5 65a91c5bf -> 940622c32


CLOUDSTACK-8313: Allow overprovisioning of local storage pools

(cherry picked from commit 9836ccdcf3b339718676847c1cfaee80cbffc1ca)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


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

Branch: refs/heads/4.5
Commit: 940622c32fb0326dd2b081304edb809b66d4c751
Parents: 43def30
Author: Wido den Hollander <wido@widodh.nl>
Authored: Tue Mar 10 14:46:21 2015 +0100
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Wed Apr 15 11:47:34 2015 +0530

----------------------------------------------------------------------
 server/src/com/cloud/storage/StorageManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/940622c3/server/src/com/cloud/storage/StorageManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java b/server/src/com/cloud/storage/StorageManagerImpl.java
index c24bca5..c8f5d29 100755
--- a/server/src/com/cloud/storage/StorageManagerImpl.java
+++ b/server/src/com/cloud/storage/StorageManagerImpl.java
@@ -1584,7 +1584,7 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager,
C
         }
 
         long totalOverProvCapacity;
-        if (pool.getPoolType() == StoragePoolType.NetworkFilesystem || pool.getPoolType()
== StoragePoolType.VMFS) {
+        if (pool.getPoolType() == StoragePoolType.NetworkFilesystem || pool.getPoolType()
== StoragePoolType.VMFS || pool.getPoolType() == StoragePoolType.Filesystem) {
             BigDecimal overProvFactor = getStorageOverProvisioningFactor(pool.getId());
             totalOverProvCapacity = overProvFactor.multiply(new BigDecimal(pool.getCapacityBytes())).longValue();
             s_logger.debug("Found storage pool " + poolVO.getName() + " of type " + pool.getPoolType().toString()
+ " with overprovisioning factor "


Mime
View raw message