From: john-griffith Date: Tue, 6 Nov 2012 05:11:52 +0000 (-0700) Subject: Remove the zeroing out of the volume altogether X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=07d4f002d056e90c520d49fe94d21183be5defe5;p=openstack-build%2Fcinder-build.git Remove the zeroing out of the volume altogether 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 --- diff --git a/cinder/volume/driver.py b/cinder/volume/driver.py index eb331f7ea..e703d2ab4 100644 --- a/cinder/volume/driver.py +++ b/cinder/volume/driver.py @@ -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" %