]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Calculate count for customized dd blocksize
authorZhiteng Huang <zhithuang@ebay.com>
Tue, 18 Jun 2013 20:43:26 +0000 (04:43 +0800)
committerZhiteng Huang <zhithuang@ebay.com>
Wed, 26 Jun 2013 08:43:26 +0000 (01:43 -0700)
commit411a85d0958a574ff6e3b27569b7ce248675c731
treef8beb6d034d49e1572ae5b351f70c52d21af4683
parent6f3b40c59dc46765677930016edf0ba1f7dbd1f9
Calculate count for customized dd blocksize

In previous commit we introduce a configurable blocksize option for
'dd' command, however the 'count' value wasn't updated accordingly.
As a result, count could be too small which is bug.  This patch
introduce a private method to 1) validate custom dd blocksize; 2)
calculate correct count value.

Fix bug: 1192258

Change-Id: Icfd2d80e8f615ed585bd1d40c741a97cf55299d3
cinder/tests/test_volume.py
cinder/volume/drivers/lvm.py