In-house supporting volume_dd_blocksize ('1M', 'G') to enable 'dd' to
run on Solaris. This patch is Solaris-specific and not suitable for
upstream.
--- cinder-8.0.0/cinder/volume/utils.py.~2~ 2016-06-10 14:42:55.143866680 -0700
+++ cinder-8.0.0/cinder/volume/utils.py 2016-06-10 14:42:55.188129865 -0700
@@ -291,6 +291,7 @@ def _calculate_count(size_in_m, blocksiz
bs = strutils.string_to_bytes('%sB' % blocksize)
count = math.ceil(size_in_m * units.Mi / bs)
+ blocksize = int(bs)
return blocksize, int(count)