Hi,

In the resize-volume command, I see this logic:

            if (diskOffering.isCustomized() ||
volume.getVolumeType().equals(Volume.Type.ROOT)) {

                newSize = cmd.getSize();


                if (newSize != null) {

                    newSize = (newSize << 30);

                }

            }

Any thoughts on why we are shifting bits 30 places to the left?

I don't recall us doing this in other places for long values?

This is in VolumeApiServiceImpl.resizeVolume.

Thanks!
-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Reply via email to