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
This commit is contained in:
john-griffith
2012-11-05 22:11:52 -07:00
parent 3e82bf10ea
commit 07d4f002d0

View 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" %