]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove the zeroing out of the volume altogether
authorjohn-griffith <john.griffith@solidfire.com>
Tue, 6 Nov 2012 05:11:52 +0000 (22:11 -0700)
committerjohn-griffith <john.griffith@solidfire.com>
Tue, 6 Nov 2012 06:37:26 +0000 (23:37 -0700)
Temporary change to get in new version which will
make the secure_delete configurable.

After pushing this and modifying the gate setup we'll
push the flag version.

Change-Id: Ic8a08566e02d822ab0eb309f61993fd8b7d21232

cinder/volume/driver.py

index eb331f7ea0e798877fa36f77d7c65f334ece324b..e703d2ab441647d2c558e81befbf24d0d29bff19 100644 (file)
@@ -150,7 +150,7 @@ class VolumeDriver(object):
         # TODO(ja): reclaiming space should be done lazy and low priority
         dev_path = self.local_path(volume)
         if os.path.exists(dev_path):
-            self._copy_volume('/dev/zero', dev_path, size_in_g)
+            #self._copy_volume('/dev/zero', dev_path, size_in_g)
             self._try_execute('dmsetup', 'remove', '-f', dev_path,
                               run_as_root=True)
         self._try_execute('lvremove', '-f', "%s/%s" %