[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Let Xen cmdline boolean options be specified as "=0", "=1", "=false", "=true".



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1189777014 -3600
# Node ID b032af6ad976a6fc3eb3ad0854864fe3458c92f3
# Parent  a79d2c0436439bda200860b363a7154b3eafbc1e
Let Xen cmdline boolean options be specified as "=0", "=1", "=false", "=true".
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/common/kernel.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r a79d2c043643 -r b032af6ad976 xen/common/kernel.c
--- a/xen/common/kernel.c       Fri Sep 14 09:52:47 2007 +0100
+++ b/xen/common/kernel.c       Fri Sep 14 14:36:54 2007 +0100
@@ -80,7 +80,10 @@ void cmdline_parse(char *cmdline)
                 break;
             case OPT_BOOL:
             case OPT_INVBOOL:
-                if ( !strcmp("no", optval) || !strcmp("off", optval) )
+                if ( !strcmp("no", optval) ||
+                     !strcmp("off", optval) ||
+                     !strcmp("false", optval) ||
+                     !strcmp("0", optval) )
                     bool_assert = !bool_assert;
                 if ( param->type == OPT_INVBOOL )
                     bool_assert = !bool_assert;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.