]> xenbits.xensource.com Git - libvirt.git/commit
openvz: Fix regression in config file parsing
authorTaisuke Yamada <tai@rakugaki.org>
Thu, 26 May 2011 17:28:54 +0000 (19:28 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 26 May 2011 17:49:18 +0000 (19:49 +0200)
commit3aab7f2d6b068f0547d10f35588ec7f1ab6882a8
tree7ee8d6c2926f5a6d8880868f582434580007dd49
parent59953c381251f7a1fcf8db0a40be2e96b8d742b5
openvz: Fix regression in config file parsing

As reported by Diego Blanco in

  https://bugzilla.redhat.com/show_bug.cgi?id=702602

commit f0443765 which replaced openvz_readline to getline(3)
broke OpenVZ driver as it changed semantics of EOF-handling
when parsing OpenVZ configuration.

There're several other issues reported with current OpenVZ driver:

 #1: unclear error message when parsing "CPUS=" line
 #2: openvz driver goes into crashing loop
 #3: "NETIF=" line in configuration is not parsed correctly
 #4: aborts even when optional parameter is missing
 #5: there's a potential memory leak

This updated patch to fix #[145]. This patch does not fix #[23]
as I haven't verified these yet, but this at least got me to run
OpenVZ on libvirt once again.
AUTHORS
src/openvz/openvz_conf.c