From e7d5c4e877d341e55ae2abd42e6878eb4280d0dd Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Tue, 15 Mar 2016 01:17:31 -0500 Subject: [PATCH] rbd: Use proper error type --- src/storage/storage_backend_rbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- GitLab