[libvirt] [PATCH]: Fix Qemu CD-ROM with no source

Chris Lalancette clalance at redhat.com
Tue Jul 29 10:07:37 UTC 2008


The new generic domain re-factor introduced a small regression into the drive
handling code.  In particular, if you had a section of XML like:

    <disk type='file' device='cdrom'>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>

This used to work with older libvirt, but now fails.  This is because we are
actually passing the literal string (null) to the qemu command-line, which qemu
barfs on.  This patch fixes it up by making it blank, which allows qemu to
continue on it's merry way.

Signed-off-by: Chris Lalancette <clalance at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-qemu-conf-null-cdrom.patch
Type: text/x-patch
Size: 1070 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080729/174963e8/attachment-0001.bin>


More information about the libvir-list mailing list