From: Peter Krempa Date: Thu, 26 Feb 2015 09:35:47 +0000 (+0100) Subject: util: storage: Fix error type in virStorageSourceParseBackingURI X-Git-Tag: v1.2.13~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef2e6f4089a14d734df158dccdef429dbebbe810;p=thirdparty%2Flibvirt.git util: storage: Fix error type in virStorageSourceParseBackingURI The gluster volume name extraction code was copied from the XML parser without changing the VIR_ERR_XML_ERROR error code. Use VIR_ERR_CONFIG_UNSUPPORTED instead. --- diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index ba00143235..78a7a9f8b9 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -2172,7 +2172,7 @@ virStorageSourceParseBackingURI(virStorageSourcePtr src, if (!(tmp = strchr(src->path, '/')) || tmp == src->path) { - virReportError(VIR_ERR_XML_ERROR, + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("missing volume name or file name in " "gluster source path '%s'"), src->path); goto cleanup;