[openstack-dev] [Cinder] Question about the magic "100M" when creating zero-size volume

Vishvananda Ishaya vishvananda at gmail.com
Tue Apr 29 16:31:12 UTC 2014


This was added long ago to support testing environments without a lot of disk space.

Vish

On Apr 29, 2014, at 12:12 AM, Zhangleiqiang (Trump) <zhangleiqiang at huawei.com> wrote:

> Hi, all:
> 	
> 	I find in some of the cinder backend volume drivers, there are codes in create_volume as follows:
> 	
> 	#cinder.volume.drivers.lvm
> 	def _sizestr(self, size_in_g):
>        if int(size_in_g) == 0:
> 			return '100m'
> 
> 	Similar codes also exist in ibm.gpfs, san.hp.hp_lefthand_cliq_proxy, san.solaris and huawei.ssh_common. I wonder why the "100M" is used here, from the git log I cannot find useful info.
> 
> 	Thanks.
> 
> 
> ----------
> zhangleiqiang (Trump)
> 
> Best Regards
> 
> 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140429/04f99fbc/attachment.pgp>


More information about the OpenStack-dev mailing list