From ef2e6f4089a14d734df158dccdef429dbebbe810 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 26 Feb 2015 10:35:47 +0100 Subject: [PATCH] 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. --- src/util/virstoragefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab