]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Don't zero out thin provisioned LV's on delete
authorJohn Griffith <john.griffith@solidfire.com>
Wed, 16 Oct 2013 01:39:22 +0000 (19:39 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Wed, 16 Oct 2013 03:13:23 +0000 (21:13 -0600)
commitde4392314f9b0def8fab65679ec5668aec98fbee
tree1c7f905c08afdc47b9a783bec90f7dd8a616eeac
parent645a84f990c90e28548cf35b4b5f242eb0e0c286
Don't zero out thin provisioned LV's on delete

Thin provisioned LV's don't need secure delete to protect
from data leakage.  Also, zeroing these out kinda defeats
the purpose of using thing provisioning.

This patch add a check for the lvm type and if it's thin simply
returns from the lvm.clear_volume() method.

Change-Id: Ie6764209018152565295291efc6fbba553698ae6
Closes-Bug: #1240299
cinder/volume/drivers/lvm.py