]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Move clear_volume back to it's own method
authorjohn-griffith <john.griffith@solidfire.com>
Tue, 4 Feb 2014 20:03:52 +0000 (13:03 -0700)
committerJohn Griffith <john.griffith@solidfire.com>
Wed, 5 Feb 2014 19:33:07 +0000 (12:33 -0700)
commit5dd125dd8cf555e37b5329867d10c01749f590c4
tree76f085057af71245e2e08536fdd8006765522b31
parent5c2339440a499fb8b86e38893f245b9f02395016
Move clear_volume back to it's own method

This just moves clear_volume back to it's own method
and also only calls volutils.clear if we actually
need to perform the clear operation.

Also takes out the hard-coded multiplier of 1024 and
uses units.GiB.  Maybe this should be a separate patch,
I'll spin another if there are objections.

Change-Id: I56f6690fbadc0d44eba48f49d29386d5b9dca195
cinder/volume/drivers/lvm.py