]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Adjust fix virStorageBackendVolWipeLocal switch
authorWido den Hollander <wido@widodh.nl>
Fri, 29 Jan 2016 12:35:35 +0000 (07:35 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 29 Jan 2016 15:24:20 +0000 (10:24 -0500)
commit69535c612457fbeddf760d7651710ff5e52f20f2
tree8a731ff6927838a827eb8bf0a6e4397b1b6b1108
parent680030c42b7453510f27a41f1778de6d3ade58aa
storage: Adjust fix virStorageBackendVolWipeLocal switch

Use the cast of (virStorageVolWipeAlgorithm) adding the missing case:'s
(VIR_STORAGE_VOL_WIPE_ALG_ZERO and VIR_STORAGE_VOL_WIPE_ALG_LAST).

Additionally, the old code would also still run the SCRUB command on
default since it didn't go to cleanup when a invalid flag was supplied.
We now go to cleanup and exit if a invalid flag would be provided.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
src/storage/storage_backend.c