]> xenbits.xensource.com Git - libvirt.git/commitdiff
remove sysfs_path and parent_sysfs_path from XML
authorDave Allan <dallan@redhat.com>
Thu, 19 Nov 2009 15:05:17 +0000 (16:05 +0100)
committerDaniel Veillard <veillard@redhat.com>
Thu, 19 Nov 2009 15:05:17 +0000 (16:05 +0100)
Erroneously included the sysfs_path and parent_sysfs_path elements in
the node device xml, they were not supposed to show up there

* src/conf/node_device_conf.c: remove the output of the 2 fields

src/conf/node_device_conf.c

index f2faeec62cd92ccf24eee31b476759b8df754b50..6003ab15ca304430186553b02d99acb68b1df220 100644 (file)
@@ -250,17 +250,9 @@ char *virNodeDeviceDefFormat(virConnectPtr conn,
 
     virBufferAddLit(&buf, "<device>\n");
     virBufferEscapeString(&buf, "  <name>%s</name>\n", def->name);
-    if (def->sysfs_path != NULL) {
-        virBufferEscapeString(&buf, "  <sysfs_path>%s</sysfs_path>\n",
-                              def->sysfs_path);
-    }
     if (def->parent) {
         virBufferEscapeString(&buf, "  <parent>%s</parent>\n", def->parent);
     }
-    if (def->parent_sysfs_path != NULL) {
-        virBufferEscapeString(&buf, "  <parent_sysfs_path>%s</parent_sysfs_path>\n",
-                              def->parent_sysfs_path);
-    }
     if (def->driver) {
         virBufferAddLit(&buf, "  <driver>\n");
         virBufferEscapeString(&buf, "    <name>%s</name>\n", def->driver);