]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Enable zero the snapshot when delete snapshot in LVMVolumeDriver
authorRongze Zhu <rongze@unitedstack.com>
Wed, 10 Jul 2013 16:25:32 +0000 (09:25 -0700)
committerRongze Zhu <rongze@unitedstack.com>
Fri, 12 Jul 2013 14:50:15 +0000 (14:50 +0000)
commit0ee31073c5cb432a9cdd2648e99aa802b0ed0a17
treea24420452ac8a566b43e0114893a81001300ed8d
parent2f5e26a247665f890cdf26773b5e7070890594d8
Enable zero the snapshot when delete snapshot in LVMVolumeDriver

Because snapshot without 'size' field, So clear_volume method in
LVMVolumeDriver will skip secure deleting. Get the size of snapshot from
'volume_size' filed, So it can zero the snapshot.

Remove the 'size_in_g' parameter in _delete_volume method, because it never
used. Add a unittest for clear_volume method.

Fixes  Bug #1198185

Change-Id: Ie919b50ce4fb276f29ab2e0279f868a691ea7bef
cinder/tests/test_volume.py
cinder/volume/drivers/lvm.py