From 07d4f002d056e90c520d49fe94d21183be5defe5 Mon Sep 17 00:00:00 2001 From: john-griffith Date: Mon, 5 Nov 2012 22:11:52 -0700 Subject: [PATCH] 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 --- cinder/volume/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" % -- 2.45.2