Whamcloud - gitweb
- merge with 1_5,some fixes.
[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  *  Copyright (C) 2006 Cluster File Systems, Inc.
5  *   Author: Nathan Rutman <nathan@clusterfs.com>
6  *
7  *   This file is part of Lustre, http://www.lustre.org.
8  *
9  *   Lustre is free software; you can redistribute it and/or
10  *   modify it under the terms of version 2 of the GNU General Public
11  *   License as published by the Free Software Foundation.
12  *
13  *   Lustre is distributed in the hope that it will be useful,
14  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *   GNU General Public License for more details.
17  *
18  *   You should have received a copy of the GNU General Public License
19  *   along with Lustre; if not, write to the Free Software
20  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  *
22  *
23  * User-settable parameter keys
24  */
25
26 #ifndef _LUSTRE_PARAM_H
27 #define _LUSTRE_PARAM_H
28
29 /* obd_config.c */
30 int class_find_param(char *buf, char *key, char **valp);
31 int class_match_param(char *buf, char *key, char **valp);
32 int class_parse_nid(char *buf, lnet_nid_t *nid, char **endh);
33 /* obd_mount.c */
34 int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd,
35             char *s1, char *s2, char *s3, char *s4);
36
37
38
39 /****************** User-settable parameter keys *********************/
40
41 #define PARAM_SYS_TIMEOUT          "sys.timeout="
42 #define PARAM_MGSNODE              "mgsnode="
43 #define PARAM_FAILNODE             "failover.node="
44 #define PARAM_FAILMODE             "failover.mode="
45 #define PARAM_OST                  "ost."
46 #define PARAM_OSC                  "osc."
47 #define PARAM_MDT                  "mdt."
48 #define PARAM_MDC                  "mdc."
49 #define PARAM_LLITE                "llite."
50 #define PARAM_LOV                  "lov."
51 /* LOV_STRIPE_* aren't settable in proc. But match the proc names. */
52 #define PARAM_LOV_STRIPE_SIZE      PARAM_LOV"stripesize="
53 #define PARAM_LOV_STRIPE_COUNT     PARAM_LOV"stripecount="
54 #define PARAM_LOV_STRIPE_OFFSET    PARAM_LOV"stripeoffset="
55 #define PARAM_LOV_STRIPE_PATTERN   PARAM_LOV"stripetype="
56
57 #endif // _LUSTRE_PARAM_H