Bug 9440: we specify the wrong disk size when attaching storage device with custom size offering

wrong usage of volume size which is in bytes for setting the size of disk offering  which in MB
pushing 2.2.4 fix to master
This commit is contained in:
Murali Reddy 2011-04-14 21:16:08 +05:30
parent b84905530a
commit 9dddeaa5a5
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
final HashSet<StoragePool> avoidPools = new HashSet<StoragePool>(avoids);
if (diskOffering != null && diskOffering.isCustomized()) {
diskOffering.setDiskSize(size);
diskOffering.setDiskSize(size/(1024*1024));
}
DiskProfile dskCh = null;
if (volume.getVolumeType() == Type.ROOT && Storage.ImageFormat.ISO != template.getFormat()) {