]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add ability for drivers to copy data preserving sparseness
authorEric Harney <eharney@redhat.com>
Fri, 15 May 2015 17:23:08 +0000 (13:23 -0400)
committerEric Harney <eharney@redhat.com>
Fri, 15 May 2015 18:08:34 +0000 (14:08 -0400)
commit4e3180c76629215d315921436ef19788ed49d2ab
tree2849feedfa241688d2b587bfe390698b232e2661
parent8a46703aaf81bb27fd3f58974c3800788b9260f2
Add ability for drivers to copy data preserving sparseness

Drivers can set self._sparse_copy_volume_data to opt in
to copying data in a way that preserves sparseness.

This is likely to be desired elsewhere, but currently this
patch only enables it for the NFS driver and provides a
method for other drivers to opt in, in case there are
unexpected issues in some drivers.

On the NFS driver, this prevents volume migration from
changing a volume file from sparse to fully allocated.

Change-Id: Ib74b2fb4015b805d33de42dfe60c8a97cc970b84
Closes-Bug: #1455595
cinder/volume/driver.py
cinder/volume/drivers/nfs.py