2 * Copyright (c) 1997, 1998
3 * Nan Yang Computer Services Limited. All rights reserved.
5 * This software is distributed under the so-called ``Berkeley
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed by Nan Yang Computer
20 * 4. Neither the name of the Company nor the names of its contributors
21 * may be used to endorse or promote products derived from this software
22 * without specific prior written permission.
24 * This software is provided ``as is'', and any express or implied
25 * warranties, including, but not limited to, the implied warranties of
26 * merchantability and fitness for a particular purpose are disclaimed.
27 * In no event shall the company or contributors be liable for any
28 * direct, indirect, incidental, special, exemplary, or consequential
29 * damages (including, but not limited to, procurement of substitute
30 * goods or services; loss of use, data, or profits; or business
31 * interruption) however caused and on any theory of liability, whether
32 * in contract, strict liability, or tort (including negligence or
33 * otherwise) arising in any way out of the use of this software, even if
34 * advised of the possibility of such damage.
36 * $Id: vinumkw.h,v 1.16 2000/02/19 06:52:46 grog Exp grog $
37 * $FreeBSD: src/sys/dev/vinum/vinumkw.h,v 1.18.2.2 2001/05/28 05:56:27 grog Exp $
38 * $DragonFly: src/sys/dev/raid/vinum/vinumkw.h,v 1.2 2003/06/17 04:28:33 dillon Exp $
42 * Command keywords that vinum knows. These include both user-level
43 * and kernel-level stuff
47 * Our complete vocabulary. The names of the commands are
48 * the same as the identifier without the kw_ at the beginning
49 * (i.e. kw_create defines the "create" keyword). Preprocessor
50 * magic in parser.c does the rest.
52 * To add a new word: put it in the table below and one of the
53 * lists in vinumparser.c (probably keywords).
60 kw_ld, /* list drive */
61 kw_ls, /* list subdisk */
62 kw_lp, /* list plex */
63 kw_lv, /* list volume */
66 kw_mv, /* move object */
67 kw_move, /* synonym for mv */
70 kw_makedev, /* make /dev/vinum devices */
71 kw_setdaemon, /* set daemon flags */
72 kw_getdaemon, /* set daemon flags */
96 kw_d, /* flag names */
102 kw_round, /* round robin */
103 kw_prefer, /* prefer plex */
121 kw_debug, /* go into debugger */
133 kw_invalid_keyword = -1
138 enum keyword keyword;
146 extern struct _keywords keywords[];
147 extern struct _keywords flag_keywords[];
149 extern struct keywordset keyword_set;
150 extern struct keywordset flag_set;