From: Andrew Cooper <andrew.cooper3@citrix.com>
To: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: Ian Campbell <Ian.Campbell@eu.citrix.com>
Subject: docs/command line: Clarify the behavior with invalid input.
Date: Fri, 31 Aug 2012 15:55:25 +0100 [thread overview]
Message-ID: <5040D05D.8090808@citrix.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 207 bytes --]
A college asked me these questions after reading the html page, so I
guess others may wish to know.
--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com
[-- Attachment #2: docs-cmdline.patch --]
[-- Type: text/x-patch, Size: 1915 bytes --]
# HG changeset patch
# Parent 1126b3079bef37e1bb5a97b90c14a51d4e1c91c3
docs/command line: Clarify the behavior with invalid input.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
diff -r 1126b3079bef docs/misc/xen-command-line.markdown
--- a/docs/misc/xen-command-line.markdown
+++ b/docs/misc/xen-command-line.markdown
@@ -11,7 +11,8 @@ Hypervisor.
## Types of parameter
Most parameters take the form `option=value`. Different options on
-the command line should be space delimited.
+the command line should be space delimited. All options are case
+sensitive, as are all values unless explicitly noted.
### Boolean (`<boolean>`)
@@ -68,6 +69,39 @@ Some options take a comma separated list
Some parameters act as combinations of the above, most commonly a mix
of Boolean and String. These are noted in the relevant sections.
+## Unexpected input
+
+This information describes the behaviour with unexpected or malformed
+input, for reference purposes. It is not expected to be used in any
+situation, nor relied upon.
+
+### Boolean
+
+* `<values>` other than those listed will invert the option, so take
+ its non-default value.
+
+* A `no-` prefix can be stacked with an explicit `=<value>`.
+ * A `no-<option>=0` will cancel, so the option takes its default
+ value.
+ * A `no-<option>=1` will invert the option, so take its non-default
+ value.
+
+### Integer
+
+Input which cannot be converted to a valid number will result in the
+parameter being set to 0. Strings which start as a valid integer but
+contain invalid characters as a suffix will have the suffix ignored.
+
+### Size
+
+Unrecognised suffixes will be ignored, and the default suffix will be
+used.
+
+### Strings, Lists and Combinations
+
+Depending on implementation, strings may be truncated or ignored all
+together as if the option were not specified in the first place.
+
## Parameter details
### acpi
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next reply other threads:[~2012-08-31 14:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-31 14:55 Andrew Cooper [this message]
2012-08-31 15:06 ` docs/command line: Clarify the behavior with invalid input Ian Campbell
2012-08-31 15:36 ` Jan Beulich
2012-08-31 16:49 ` (v2) " Andrew Cooper
2012-09-03 6:55 ` Jan Beulich
2012-09-03 10:23 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5040D05D.8090808@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.