From: Olga Krishtal Date: Mon, 11 Apr 2016 16:16:23 +0000 (+0300) Subject: storage: dir: .wipeVol is left unsupported for ploop volume X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0927fb3ea87e6ea15974e5acac5975cb776998bd;p=libvirt.git storage: dir: .wipeVol is left unsupported for ploop volume Returns error in case of vol-wipe cmd for a ploop volume Signed-off-by: Olga Krishtal --- diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 5ee1638dd1..3a5a7ea813 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -2163,6 +2163,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,