-
Notifications
You must be signed in to change notification settings - Fork 913
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters