]> xenbits.xensource.com Git - libvirt.git/commit
node_memory: Do not fail if there is parameter unsupported
authorOsier Yang <jyang@redhat.com>
Wed, 28 Nov 2012 14:11:06 +0000 (22:11 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 29 Nov 2012 07:36:23 +0000 (15:36 +0800)
commitebdbe25a97fc0b718fc17ed07db7608621ec8a57
tree12d60ef841f0408dea838661c6514a41faca4aa3
parentb7aba48bcaf315c27430a7d0edf8ff702d293527
node_memory: Do not fail if there is parameter unsupported

It makes no sense to fail the whole getting command if there is
a parameter unsupported by the kernel. This patch fixes it by
omitting the unsupported parameter for getMemoryParameters.

And for setMemoryParameters, this checks if there is an unsupported
parameter up front of the setting, and just returns failure if not
all parameters are supported.
src/libvirt.c
src/nodeinfo.c