]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: improve the way we format blkiotune and cputune
authorLuyao Huang <lhuang@redhat.com>
Tue, 23 Jun 2015 13:24:25 +0000 (21:24 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 24 Jun 2015 09:32:09 +0000 (11:32 +0200)
commit5d8ef8ad670d52558bcfdc0e1ee3e76fb33cd5d1
tree6e267244583428187ee559a8d86a3ad446b43462
parent4902d170543946a9b6dd57a394de62efa6aaa852
conf: improve the way we format blkiotune and cputune

Just refactor existing code to use a child buf instead of
check all element before format <blkiotune> and <cputune>.
This will avoid the more and more bigger element check during
we introduce new elements in <blkiotune> and <cputune> in the
future.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/conf/domain_conf.c