]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
tools/xenstored: liveupdate: Increase the maximum number of parameters
authorJulien Grall <jgrall@amazon.com>
Fri, 5 Mar 2021 12:10:29 +0000 (12:10 +0000)
committerJulien Grall <jgrall@amazon.com>
Sat, 6 Mar 2021 19:07:49 +0000 (19:07 +0000)
The longest possible command line for LiveUpdate is:

  liveupdate -s -t <timeout> -F

This is 5 parameters. However, the maximum is currently specified to 4.
This means the some of the parameters will get ignored.

Update the field max_pars to 5 so and admin can specify the timeout and
force at the same time.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
tools/xenstore/xenstored_control.c

index a1652219b2477671a9338b300b87504d313bb3d3..8e470f2b205688ab27c48d39e4df481dcf0054ae 100644 (file)
@@ -768,7 +768,7 @@ static struct cmd_s cmds[] = {
         */
        { "live-update", do_control_lu,
                "[-c <cmdline>] [-F] [-t <timeout>] <file>\n"
-               "    Default timeout is 60 seconds.", 4 },
+               "    Default timeout is 60 seconds.", 5 },
 #endif
 #ifdef __MINIOS__
        { "memreport", do_control_memreport, "" },