Whamcloud - gitweb
b=16098
[fs/lustre-release.git] / lustre / include / lustre_param.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * GPL HEADER START
5  *
6  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 only,
10  * as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License version 2 for more details (a copy is included
16  * in the LICENSE file that accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License
19  * version 2 along with this program; If not, see [sun.com URL with a
20  * copy of GPLv2].
21  *
22  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
23  * CA 95054 USA or visit www.sun.com if you need additional information or
24  * have any questions.
25  *
26  * GPL HEADER END
27  */
28 /*
29  * Copyright  2008 Sun Microsystems, Inc. All rights reserved
30  * Use is subject to license terms.
31  */
32 /*
33  * This file is part of Lustre, http://www.lustre.org/
34  * Lustre is a trademark of Sun Microsystems, Inc.
35  *
36  * lustre/include/lustre_param.h
37  *
38  * User-settable parameter keys
39  *
40  * Author: Nathan Rutman <nathan@clusterfs.com>
41  */
42
43 #ifndef _LUSTRE_PARAM_H
44 #define _LUSTRE_PARAM_H
45
46 /* obd_config.c */
47 int class_find_param(char *buf, char *key, char **valp);
48 int class_match_param(char *buf, char *key, char **valp);
49 int class_parse_nid(char *buf, lnet_nid_t *nid, char **endh);
50 /* obd_mount.c */
51 int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd,
52             char *s1, char *s2, char *s3, char *s4);
53
54
55
56 /****************** User-settable parameter keys *********************/
57 /* e.g. 
58         tunefs.lustre --param="failover.node=192.168.0.13@tcp0" /dev/sda
59         lctl conf_param testfs-OST0000 failover.node=3@elan,192.168.0.3@tcp0
60                     ... testfs-MDT0000.lov.stripesize=4M
61                     ... testfs-OST0000.ost.client_cache_seconds=15
62                     ... testfs.sys.timeout=<secs> 
63                     ... testfs.llite.max_read_ahead_mb=16
64 */
65
66 /* System global or special params not handled in obd's proc */
67 #define PARAM_SYS_TIMEOUT          "sys.timeout="      /* global */
68 #define PARAM_MGSNODE              "mgsnode="          /* during mount */
69 #define PARAM_FAILNODE             "failover.node="    /* llog generation */
70 #define PARAM_FAILMODE             "failover.mode="    /* llog generation */
71 #define PARAM_ACTIVE               "active="           /* llog generation */
72
73 /* Prefixes for parameters handled by obd's proc methods (XXX_process_config) */
74 #define PARAM_OST                  "ost."
75 #define PARAM_OSC                  "osc."
76 #define PARAM_MDT                  "mdt."
77 #define PARAM_MDC                  "mdc."
78 #define PARAM_LLITE                "llite."
79 #define PARAM_LOV                  "lov."
80 #define PARAM_SRPC                 "srpc."
81 #define PARAM_SRPC_FLVR            "srpc.flavor."
82 #define PARAM_SRPC_UDESC           "srpc.udesc.cli2mdt"
83 #define PARAM_SEC                  "security."
84
85 #endif /* _LUSTRE_PARAM_H */