xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-4.15] tools/xenstored: liveupdate: Increase the maximum number of parameters
@ 2021-03-05 12:10 Julien Grall
  2021-03-05 12:44 ` Jürgen Groß
  2021-03-05 13:22 ` Ian Jackson
  0 siblings, 2 replies; 11+ messages in thread
From: Julien Grall @ 2021-03-05 12:10 UTC (permalink / raw)
  To: xen-devel; +Cc: raphning, iwj, Julien Grall

From: Julien Grall <jgrall@amazon.com>

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>

---

This is a candidate for Xen 4.15. Without it, it would not be possible
to pass -F and -t together.

The change is only modifying behavior for XenStored LiveUpdate.
---
 tools/xenstore/xenstored_control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/xenstore/xenstored_control.c b/tools/xenstore/xenstored_control.c
index a1652219b247..8e470f2b2056 100644
--- a/tools/xenstore/xenstored_control.c
+++ b/tools/xenstore/xenstored_control.c
@@ -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, "" },
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-03-06 19:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 12:10 [PATCH for-4.15] tools/xenstored: liveupdate: Increase the maximum number of parameters Julien Grall
2021-03-05 12:44 ` Jürgen Groß
2021-03-05 13:22 ` Ian Jackson
2021-03-05 14:33   ` Jürgen Groß
2021-03-05 14:37     ` Ian Jackson
2021-03-05 14:41       ` Jürgen Groß
2021-03-05 14:46         ` Ian Jackson
2021-03-05 14:49           ` Ian Jackson
2021-03-05 14:55             ` Jürgen Groß
2021-03-05 14:56           ` Jürgen Groß
2021-03-06 19:39   ` Julien Grall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).