]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
nodedev: parse <path>
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 14 Feb 2017 21:04:11 +0000 (01:04 +0400)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 17 Feb 2017 14:47:58 +0000 (15:47 +0100)
This should have been added with c4a4603de (or 0bdefd9b04).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
src/conf/node_device_conf.c

index 91a76586c0644c60d287d5a01608141691d2144a..a3cefcda8d8bd96e665052943b8d703db0c49e6c 100644 (file)
@@ -1736,6 +1736,8 @@ virNodeDeviceDefParseXML(xmlXPathContextPtr ctxt,
             goto error;
     }
 
+    def->sysfs_path = virXPathString("string(./path[1])", ctxt);
+
     /* Parse devnodes */
     nodes = NULL;
     if ((n = virXPathNodeSet("./devnode", ctxt, &nodes)) < 0)