]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix problem of efficient volume copy for migration
authorMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Wed, 2 Sep 2015 18:33:18 +0000 (14:33 -0400)
committerMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Wed, 2 Sep 2015 18:47:49 +0000 (14:47 -0400)
commit05047c91674453a4ae209a7e29f399853d1dd10c
tree8b55edfdb1494dfa501620bc027413a6a49add8c
parent0773a4130d701f3b840f404bbee7adca89b69cdc
Fix problem of efficient volume copy for migration

After introducing commit f586043fa969b9d1dcf4933aacbf615f53691093,
new volume copy method _copy_volume_data() was added into
manager.py. Originally driver.py had this method and it was copied
into manager.py. However new _copy_volume_data() lost efficient
volume copy logic during the reimplementation.

This patch simply add efficient volume copy logic again into new
_copy_volume_data() to fix the problem.

Change-Id: I183cbd2265c1f47c9047818e1d4915c896927280
Closes-Bug: 1491538
cinder/tests/unit/test_volume.py
cinder/volume/manager.py