# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1228425324 28800
# Node ID 66e9e46e0defd91c79a27aeaa0a313241d88d206
# Parent ef03ffafe2dd00f3e2a78a2bce1cb9b4836b5d2b
(#2) Fix an old omission (and a couple typos) in virt_device_dup()
Changes:
- Got the proper version
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r ef03ffafe2dd -r 66e9e46e0def 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 13:15:24 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.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;