]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Set source volume to "in use" during clone
authorWalter A. Boring IV <walter.boring@hp.com>
Tue, 29 Jan 2013 19:52:46 +0000 (11:52 -0800)
committerWalter A. Boring IV <walter.boring@hp.com>
Tue, 29 Jan 2013 20:00:07 +0000 (12:00 -0800)
commit54448d5bf8f7ce06f0fb8ffd8c53f8b4cef67f25
tree87e363dbe01690513368b3ea4c028e6b47d37ea5
parentd66ea53e82e862e9660163541c2453e2e3bd104b
Set source volume to "in use" during clone

When we are cloning a volume, we now set the source volume's status
to 'in use'. This prevents a user from deleting the source volume while the
backend copies/clones the contents to the new volume.
When the cloning is complete, we reset the status to it's original
state.

Change-Id: Ie43345aba77df4671ed2b429645cf8d1af9b975b
cinder/volume/manager.py