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.
Reviewed: https:/ /review. openstack. org/39565 github. com/openstack/ cinder/ commit/ 68c597e26b5659a 036a7a937622e53 9bac102308
Committed: http://
Submitter: Jenkins
Branch: stable/grizzly
commit 68c597e26b5659a 036a7a937622e53 9bac102308
Author: Rongze Zhu <email address hidden>
Date: Wed Jul 10 09:25:32 2013 -0700
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: Ie919b50ce4fb27 6f29ab2e0279f86 8a691ea7bef a9cdd2648e99aa8 02b0ed0a17)
(cherry picked from commit 0ee31073c5cb432