# HG changeset patch
# User Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
# Date 1244173955 10800
# Node ID 5037ddc96cee2ed47f6f91eeb7fc634a3c01d212
# Parent 8f9488b1665f045bcdd4c96769053c6f76379b34
Signed-off-by: Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
diff -r 8f9488b1665f -r 5037ddc96cee libxkutil/device_parsing.c
--- a/libxkutil/device_parsing.c Thu Jun 04 23:58:13 2009 -0300
+++ b/libxkutil/device_parsing.c Fri Jun 05 00:52:35 2009 -0300
@@ -59,6 +59,7 @@
free(dev->driver);
free(dev->source);
free(dev->virtual_dev);
+ free(dev->bus_type);
}
static void cleanup_net_device(struct net_device *dev)
@@ -246,6 +247,7 @@
ddev->virtual_dev = get_attr_value(child, "dev");
if (ddev->virtual_dev == NULL)
goto err;
+ ddev->bus_type = get_attr_value(child, "bus");
} else if (XSTREQ(child->name, "readonly")) {
ddev->readonly = true;
} else if (XSTREQ(child->name, "shareable")) {
@@ -666,6 +668,7 @@
DUP_FIELD(dev, _dev, dev.disk.driver);
DUP_FIELD(dev, _dev, dev.disk.source);
DUP_FIELD(dev, _dev, dev.disk.virtual_dev);
+ DUP_FIELD(dev, _dev, dev.disk.bus_type);
dev->dev.disk.disk_type = _dev->dev.disk.disk_type;
dev->dev.disk.readonly = _dev->dev.disk.readonly;
dev->dev.disk.shareable = _dev->dev.disk.shareable;