mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
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:
parent
f2f656d426
commit
2cdb665b10
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user