# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1228415403 28800
# Node ID f4ae9827f50048c5054c159ccd755e9c3ba574e8
# Parent ef03ffafe2dd00f3e2a78a2bce1cb9b4836b5d2b
Fix an old omission (and a couple typos) in virt_device_dup()
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r ef03ffafe2dd -r f4ae9827f500 libxkutil/device_parsing.c
--- a/libxkutil/device_parsing.c Thu Dec 04 09:41:51 2008 -0700
+++ b/libxkutil/device_parsing.c Thu Dec 04 10:30:03 2008 -0800
@@ -661,8 +661,9 @@
DUP_FIELD(dev, _dev, dev.disk.driver);
DUP_FIELD(dev, _dev, dev.disk.source);
DUP_FIELD(dev, _dev, dev.disk.virtual_dev);
- dev->dev.disk.readonly = dev->dev.disk.readonly;
- dev->dev.disk.shareable = dev->dev.disk.shareable;
+ dev->dev.disk.disk_type = _dev->dev.disk.type
+ dev->dev.disk.readonly = _dev->dev.disk.readonly;
+ dev->dev.disk.shareable = _dev->dev.disk.shareable;
} else if (dev->type == CIM_RES_TYPE_MEM) {
dev->dev.mem.size = _dev->dev.mem.size;
dev->dev.mem.maxsize = _dev->dev.mem.maxsize;