[libvirt] [PATCH 2/2] util: storage: Fix error type in virStorageSourceParseBackingURI
Peter Krempa
pkrempa at redhat.com
Thu Feb 26 09:50:58 UTC 2015
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 ba00143..78a7a9f 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;
--
2.2.2
More information about the libvir-list
mailing list