]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Provide error on undefined iothreadsched entry
authorJohn Ferlan <jferlan@redhat.com>
Mon, 15 Aug 2016 13:45:28 +0000 (09:45 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 16 Aug 2016 15:29:22 +0000 (11:29 -0400)
commit8c6b29e7b41d678ab9c5542efd607b28776e4f24
treea50cd11eb01c24bccc471eba214309a7f4f5f6b1
parentc6f26fc207a31fd069779ebdd400196249c9784a
conf: Provide error on undefined iothreadsched entry

When commit id '6dfb4507' refactored where the iothreadsched data was
stored, the error message for when the virDomainIOThreadIDFind failed
to find an iothreadid ("iothreadsched attribute 'iothreads' uses
undefined iothread ids") was lost. This led to the possibility that
someone would try to use it, but receive the generic message "An error
occurred, but the cause is unknown".

This patch adds the error message back so that someone will know that
they have an invalid configuration.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/domain_conf.c