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

Zhangleiqiang (Trump) zhangleiqiang at huawei.com
Tue Apr 29 07:12:59 UTC 2014


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





More information about the OpenStack-dev mailing list