cloudstack/server/src/com/cloud/deploy
Edison Su 50ffa95f63 ifix CS-15609 Volumes can be created as a part of VM creation when
un-allocated space is insufficient on primary storage

check the availability of un-allocated primary storage space during
planning stage, for multiple-volume VM creation scenario
modification in StorageManagerImpl.java and StorageManager.java:
add a new method storagePoolHasEnoughSpace(List<Volumes>, StoragePool),
check if storagePool has enough space for all requested volumes
modification in FirstfitPlanner.findPotentialDeploymentResources:
handle multiple volume case, keep track of allocated volumes for pools
and call storagePoolHasEnoughSpace to check space availability
modification in AbstractStoragePoolAllocator.java:
extract capacity computation logic and make a new method in
StorageManagerImpl

RB: https://reviews.apache.org/r/6028/
Send-by: mice_xia@tcloudcomputing.com
2012-07-26 10:10:18 -07:00
..
BareMetalPlanner.java Patch from Chip Childers 2012-07-02 09:51:21 -04:00
FirstFitPlanner.java ifix CS-15609 Volumes can be created as a part of VM creation when 2012-07-26 10:10:18 -07:00
PlannerBase.java Patch from Chip Childers 2012-07-02 09:51:21 -04:00