]> xenbits.xensource.com Git - xen.git/commit
tools/oxenstored: validate config file before live update
authorEdwin Török <edvin.torok@citrix.com>
Tue, 11 May 2021 15:56:50 +0000 (15:56 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 6 Feb 2023 10:22:12 +0000 (10:22 +0000)
commite6f07052ce4a0f0b7d4dc522d87465efb2d9ee86
treebd84787254af57ef13d1a6fc25634c34c061a558
parentea250e81cfc709feccd47a682dbaf805bde08e87
tools/oxenstored: validate config file before live update

The configuration file can contain typos or various errors that could prevent
live update from succeeding (e.g. a flag only valid on a different version).
Unknown entries in the config file would be ignored on startup normally,
add a strict --config-test that live-update can use to check that the config file
is valid *for the new binary*.

For compatibility with running old code during live update recognize
--live --help as an equivalent to --config-test.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/parse_arg.ml
tools/ocaml/xenstored/xenstored.ml