]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Move copy_volume function to volume/utils.py.
authorAvishay Traeger <avishay@il.ibm.com>
Wed, 17 Jul 2013 12:35:03 +0000 (15:35 +0300)
committerAvishay Traeger <avishay@il.ibm.com>
Thu, 18 Jul 2013 05:49:04 +0000 (08:49 +0300)
commit30397d8a0a22f3ecad0001ac50a084cc41f4a43d
tree6e072d1ef3f5be7ed1dd562274114b60079a6b1a
parent009c9cbe0f514f4671224b35b9f203937f8bef9d
Move copy_volume function to volume/utils.py.

There are several copy-pastes of running dd, so moved the most
correct one (LVM) to volume/utils.py, and also updated
BlockDeviceDriver to use it. Other drivers (e.g., NFS, GPFS, Scality)
should be updated as well. Volume migration for detached volumes
is a future use case.

Change-Id: I56c64c94eccf0a311e6f3d611738ad0403351971
cinder/tests/test_block_device.py
cinder/tests/test_volume.py
cinder/tests/test_volume_utils.py
cinder/volume/drivers/block_device.py
cinder/volume/drivers/lvm.py
cinder/volume/utils.py