提交 2cdb665b 编写于 作者: D Dave Allan 提交者: Daniel Veillard

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
上级 f2f656d4
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册