remove sysfs_path and parent_sysfs_path from XML

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
This commit is contained in:
Dave Allan 2009-11-19 16:05:17 +01:00 committed by Daniel Veillard
parent f2f656d426
commit 2cdb665b10

View 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);