You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2015/04/15 10:05:50 UTC

[50/53] [abbrv] git commit: updated refs/heads/reporter to 5c99784

CLOUDSTACK-8313: Allow overprovisioning of local storage pools


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

Branch: refs/heads/reporter
Commit: 9836ccdcf3b339718676847c1cfaee80cbffc1ca
Parents: 2fad87d
Author: Wido den Hollander <wi...@widodh.nl>
Authored: Tue Mar 10 14:46:21 2015 +0100
Committer: Wido den Hollander <wi...@widodh.nl>
Committed: Tue Apr 14 17:30:27 2015 +0200

----------------------------------------------------------------------
 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/9836ccdc/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 d72cc69..fafcdcd 100644
--- a/server/src/com/cloud/storage/StorageManagerImpl.java
+++ b/server/src/com/cloud/storage/StorageManagerImpl.java
@@ -1600,7 +1600,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 "