]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
util: storage: Fix error type in virStorageSourceParseBackingURI
authorPeter Krempa <pkrempa@redhat.com>
Thu, 26 Feb 2015 09:35:47 +0000 (10:35 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 26 Feb 2015 10:50:38 +0000 (11:50 +0100)
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

index ba001432354499ebff252e3b07a7a938c9349a90..78a7a9f8b935c5bfb77fcc8b6f3defb8e731fb51 100644 (file)
@@ -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;