summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-08-24 02:27:45 +0000
committergrog <grog@FreeBSD.org>1999-08-24 02:27:45 +0000
commit5ced956edaa376d9127e89c67f1e964ff84fcaec (patch)
treefe4f55a82ac075ead7f05d82176c5221cb2ae0d5 /sys/dev/vinum
parent65014fdc6389f488d5ceb6ae69cdf69324943359 (diff)
downloadFreeBSD-src-5ced956edaa376d9127e89c67f1e964ff84fcaec.zip
FreeBSD-src-5ced956edaa376d9127e89c67f1e964ff84fcaec.tar.gz
Add keywords setstate, checkparity, rebuildparity.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinumkw.h7
-rw-r--r--sys/dev/vinum/vinumparser.c15
2 files changed, 14 insertions, 8 deletions
diff --git a/sys/dev/vinum/vinumkw.h b/sys/dev/vinum/vinumkw.h
index 481b7ad..31293bc 100644
--- a/sys/dev/vinum/vinumkw.h
+++ b/sys/dev/vinum/vinumkw.h
@@ -20,7 +20,7 @@
* 4. Neither the name of the Company nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
- *
+ *
* This software is provided ``as is'', and any express or implied
* warranties, including, but not limited to, the implied warranties of
* merchantability and fitness for a particular purpose are disclaimed.
@@ -38,7 +38,7 @@
/*
* Command keywords that vinum knows. These include both user-level
- * and kernel-level stuff
+ * and kernel-level stuff
*/
/*
@@ -119,6 +119,9 @@ enum keyword {
kw_info,
kw_quit,
kw_max,
+ kw_setstate,
+ kw_checkparity,
+ kw_rebuildparity,
kw_invalid_keyword = -1
};
diff --git a/sys/dev/vinum/vinumparser.c b/sys/dev/vinum/vinumparser.c
index 925a92a..5cff5fe 100644
--- a/sys/dev/vinum/vinumparser.c
+++ b/sys/dev/vinum/vinumparser.c
@@ -20,7 +20,7 @@
* 4. Neither the name of the Company nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
- *
+ *
* This software is provided ``as is'', and any express or implied
* warranties, including, but not limited to, the implied warranties of
* merchantability and fitness for a particular purpose are disclaimed.
@@ -38,7 +38,7 @@
/*
* This file contains the parser for the configuration routines. It's used
- * both in the kernel and in the user interface program, thus the separate file.
+ * both in the kernel and in the user interface program, thus the separate file.
*/
/*
@@ -53,7 +53,7 @@
* grey space.
*
* Error conditions are end of line before end of quote, or no space after
- * a closing quote. In this case, tokenize() returns -1.
+ * a closing quote. In this case, tokenize() returns -1.
*/
#include <sys/param.h>
@@ -157,7 +157,10 @@ struct _keywords keywords[] =
keypair(max),
keypair(replace),
keypair(readpol),
- keypair(resetstats)
+ keypair(resetstats),
+ keypair(setstate),
+ keypair(checkparity),
+ keypair(rebuildparity)
};
struct keywordset keyword_set = KEYWORDSET(keywords);
@@ -174,7 +177,7 @@ struct keywordset flag_set = KEYWORDSET(flag_keywords);
#endif
-int
+int
tokenize(char *cptr, char *token[])
{
char delim; /* delimiter for searching for the partner */
@@ -211,7 +214,7 @@ tokenize(char *cptr, char *token[])
}
/* Find a keyword and return an index */
-enum keyword
+enum keyword
get_keyword(char *name, struct keywordset *keywordset)
{
int i;
OpenPOWER on IntegriCloud