mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
virsh-volume: Avoid 'vir' prefix for locally declared VIR_ENUM* helpers
Stuff used in virsh should use 'virsh'. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0c038aeffc
commit
b12a0e62f0
@ -962,8 +962,8 @@ static const vshCmdOptDef opts_vol_wipe[] = {
|
||||
{.name = NULL}
|
||||
};
|
||||
|
||||
VIR_ENUM_DECL(virStorageVolWipeAlgorithm);
|
||||
VIR_ENUM_IMPL(virStorageVolWipeAlgorithm,
|
||||
VIR_ENUM_DECL(virshStorageVolWipeAlgorithm);
|
||||
VIR_ENUM_IMPL(virshStorageVolWipeAlgorithm,
|
||||
VIR_STORAGE_VOL_WIPE_ALG_LAST,
|
||||
"zero", "nnsa", "dod", "bsi", "gutmann", "schneier",
|
||||
"pfitzner7", "pfitzner33", "random", "trim");
|
||||
@ -985,7 +985,7 @@ cmdVolWipe(vshControl *ctl, const vshCmd *cmd)
|
||||
goto out;
|
||||
|
||||
if (algorithm_str &&
|
||||
(algorithm = virStorageVolWipeAlgorithmTypeFromString(algorithm_str)) < 0) {
|
||||
(algorithm = virshStorageVolWipeAlgorithmTypeFromString(algorithm_str)) < 0) {
|
||||
vshError(ctl, _("Unsupported algorithm '%s'"), algorithm_str);
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user