[libvirt] [PATCH] conf: Report error if invalid type specified for character device

Eric Blake eblake at redhat.com
Mon Jan 10 17:30:57 UTC 2011


On 01/09/2011 04:18 AM, Osier Yang wrote:
> If invalid type is specified, e.g.
> <serial type='foo'>
>     <target port='0'/>
> </serial>
> 
> We replace 'foo' with "null" type implicitly, without reporting an
> error message to tell the user, and "start" or "edit" the domain
> will be success.
> 
> It's not good to guess what the user wants, This patch is to fix
> the problem.
> 
> * src/conf/domain_conf.c

ACK, and pushed (by the way, I noticed the same problem while working on
my <smartcard> XML patches, but you posted first).

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110110/9308905a/attachment-0001.sig>


More information about the libvir-list mailing list