]> git.ipfire.org Git - thirdparty/libvirt.git/commit
iotune: setting an invalid value now reports error
authorErik Skultety <eskultet@redhat.com>
Mon, 25 Aug 2014 08:50:12 +0000 (10:50 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 25 Aug 2014 14:12:05 +0000 (16:12 +0200)
commitd60c33c6b5f84eb1468054374f5272189477f713
tree703437074dfd95b30e386b21b3dcfaec3467a591
parentadfdb8d5bdec0799571c99ed5479d8798b3e3a96
iotune: setting an invalid value now reports error

When trying to set an invalid value into iotune element, standard
behavior was to not report any error, rather to reset all affected
subelements of the iotune element back to 0 which results in ignoring
those particular subelements by XML generator. Patch further
examines the return code of the virXPathULongLong function
and in case of an invalid non-integer value raises an error.
Fixed to preserve consistency with invalid value checking
of other elements.

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1131811
src/conf/domain_conf.c