[libvirt] [PATCH 5/6] storage:dir: .wipeVol is left unsupported for ploop volume

Nikolay Shirokovskiy nshirokovskiy at virtuozzo.com
Wed Feb 10 12:19:16 UTC 2016



On 09.02.2016 16:52, Olga Krishtal wrote:
> Returns error in case of vol-wipe cmd for a ploop volume
> 
> Signed-off-by: Olga Krishtal <okrishtal at virtuozzo.com>
> ---
>  src/storage/storage_backend.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
> index fb4d1b9..21dd96d 100644
> --- a/src/storage/storage_backend.c
> +++ b/src/storage/storage_backend.c
> @@ -2217,6 +2217,12 @@ virStorageBackendVolWipeLocal(virConnectPtr conn ATTRIBUTE_UNUSED,
>      VIR_DEBUG("Wiping volume with path '%s' and algorithm %u",
>                vol->target.path, algorithm);
>  
> +    if (vol->target.format == VIR_STORAGE_FILE_PLOOP) {
> +        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
> +                       _("wiping for ploop volumes is not supported"));
> +        goto cleanup;
> +    }
> +
>      fd = open(vol->target.path, O_RDWR);
>      if (fd == -1) {
>          virReportSystemError(errno,
> 
ACK




More information about the libvir-list mailing list