]> xenbits.xensource.com Git - libvirt.git/commit
With the recent refactoring of the domain code, plus the changes with the Xend
authorChris Lalancette <clalance@redhat.com>
Tue, 5 Aug 2008 16:45:07 +0000 (16:45 +0000)
committerChris Lalancette <clalance@redhat.com>
Tue, 5 Aug 2008 16:45:07 +0000 (16:45 +0000)
commit6335c2a0cc6e2056d5f2c7724c764ed94cee5d96
tree8c2fede39629c808759327f6b5c9a95ef0a42cea
parent8c3000286280612677302ebdf967fb235d09988c
With the recent refactoring of the domain code, plus the changes with the Xend
code, a couple of bugs were introduced into the attach-disk and attach-interface
functionality.  This patch fixes 3 bugs:

1)  In xenDaemonAttachDevice(), there is a switch statement to determine which
of the xenDaemonFormatSxpr{Disk,Net} functions to call.  Unfortunately, the case
statements are all missing the corresponding "break", so we always fall-through
to the default error case.  This patch just adds the appropriate break statements.

2)  (minor) In xenDaemonDomainDefineXML (that's a mouthful!), there is a stray
"fprintf".  This is now converted to a proper virXendError().

3)  xenDaemonFormatSxpr{Disk,Net} were adding an extra (device to the front of
the sexpr expressions that xend did not expect (this is Xend on RHEL 5.2).
Because of this, the attaches would fail.  The patch fixes this by removing the
(device from the front, which makes attach-disk and attach-interface work again.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
ChangeLog
src/xend_internal.c