On Tue, Feb 19, 2013 at 08:27:43PM +0800, Osier Yang wrote:
---
src/qemu/qemu_process.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 69e4209..6466a79 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -3188,6 +3188,7 @@ qemuProcessReconnect(void *opaque)
int reason;
virQEMUDriverConfigPtr cfg;
virCapsPtr caps = NULL;
+ int i;
s/int/size_t/
memcpy(&oldjob, &data->oldjob, sizeof(oldjob));
@@ -3229,6 +3230,15 @@ qemuProcessReconnect(void *opaque)
if (qemuUpdateActiveUsbHostdevs(driver, obj->def) < 0)
goto error;
+ /* XXX: Need to change as long as lock is introduced for
+ * qemu_driver->sharedDisks.
Not sure I understand what this comment is refering to ?
+ */
+ for (i = 0; i < obj->def->ndisks; i++) {
+ if (qemuAddSharedDisk(driver, obj->def->disks[i],
+ obj->def->name) < 0)
+ goto error;
+ }
+
ACK if comment is clarified
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|