]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
GPFS use clone_image for creating volumes
authorBill Owen <billowen@us.ibm.com>
Fri, 16 Aug 2013 22:49:06 +0000 (15:49 -0700)
committerBill Owen <billowen@us.ibm.com>
Wed, 21 Aug 2013 21:23:12 +0000 (14:23 -0700)
commit5f5a37d31a4466e32fad39000ecf71156cc09b2d
tree61dab29659bdbfe2136b3dd37a4c2edfa7fca37c
parentf88732fdd5b172a3762cebc84eec6ccf56fd16c3
GPFS use clone_image for creating volumes

If both source and target of gpfs create volume from image operation
are backed by gpfs storage use clone_image method for implementing
the move of image data to the new volume.

The copy_image_to_volume method is used only if this is not true,
and uses image_utils.fetch_to_raw to move image data to the new
volume.

Fixes bug #1213248

Change-Id: I3958febe67cc86bc3cb608288f7d064f74d3a731
cinder/tests/test_gpfs.py
cinder/volume/drivers/gpfs.py