[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH]: Fix Qemu CD-ROM with no source
- From: "Daniel P. Berrange" <berrange redhat com>
- To: Chris Lalancette <clalance redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] [PATCH]: Fix Qemu CD-ROM with no source
- Date: Tue, 29 Jul 2008 11:14:07 +0100
On Tue, Jul 29, 2008 at 12:07:37PM +0200, Chris Lalancette wrote:
> 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 redhat com>
ACK, looks fine. The other branch for QEMU without -drive, will simply
omit the '-cdrom' arg, which is correct behaviour because QEMU adds an
implicit CDROM device in that case.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]