From: Richard Laager Date: Tue, 15 Mar 2016 06:17:31 +0000 (-0500) Subject: rbd: Use proper error type X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e7d5c4e877d341e55ae2abd42e6878eb4280d0dd;p=libvirt.git rbd: Use proper error type --- diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c index 7d04b39aa3..3e70a42bb5 100644 --- a/src/storage/storage_backend_rbd.c +++ b/src/storage/storage_backend_rbd.c @@ -671,9 +671,9 @@ virStorageBackendRBDCreateVol(virConnectPtr conn ATTRIBUTE_UNUSED, vol->type = VIR_STORAGE_VOL_NETWORK; if (vol->target.format != VIR_STORAGE_FILE_RAW) { - virReportError(VIR_ERR_NO_SUPPORT, "%s", + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("only RAW volumes are supported by this storage pool")); - return -VIR_ERR_NO_SUPPORT; + return -1; } VIR_FREE(vol->target.path);