]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Report error if invalid type specified for character device
authorOsier Yang <jyang@redhat.com>
Sun, 9 Jan 2011 11:18:52 +0000 (19:18 +0800)
committerEric Blake <eblake@redhat.com>
Mon, 10 Jan 2011 17:24:44 +0000 (10:24 -0700)
commit92d653010606a45a69ea6edd55ba689bffca0b44
treea777ba96bd3a9e977d5c422f081021f3f90dc712
parent5e5acbc8d67e1ac074320176bbc3682b9ba934c0
conf: Report error if invalid type specified for character device

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
src/conf/domain_conf.c