convert "no-" command line option prefix into "=no" for OPT_CUSTOM
authorJan Beulich <jbeulich@suse.com>
Mon, 4 Aug 2014 11:44:36 +0000 (13:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Aug 2014 11:44:36 +0000 (13:44 +0200)
commita0d52bfab4cb90e0f49073f12730936c1f3e718d
treebf3a1eaf159b29a71849f75fbf9de1a9c2f208d0
parent9143a6c55ef7e8f630857cb08c03844d372c2345
convert "no-" command line option prefix into "=no" for OPT_CUSTOM

... to allow restoring/retaining previous behavior for options getting
converted from boolean to custom. Obviously that'll work only when no
other argument was specified for the option. Command line settings of
the form "no-<name>=<value>" will now be ignored as ambiguous (rather
than being interpreted as "<name>=<value>", i.e. ignoring the "no-"
prefix).

Reported-by: Don Slutz <dslutz@verizon.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/kernel.c