Whamcloud - gitweb
* landing 11667 (debug_peer_on_timeout) and 11684 (liblustre block for asynch
[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 /* e.g. 
41         tunefs.lustre --param="failover.node=192.168.0.13@tcp0" /dev/sda
42         lctl conf_param testfs-OST0000 failover.node=3@elan,192.168.0.3@tcp0
43                     ... testfs-MDT0000.lov.stripesize=4M
44                     ... testfs-OST0000.ost.client_cache_seconds=15
45                     ... testfs.sys.timeout=<secs> 
46                     ... testfs.llite.max_read_ahead_mb=16
47 */
48
49 /* System global or special params not handled in obd's proc */
50 #define PARAM_SYS_TIMEOUT          "sys.timeout="      /* global */
51 #define PARAM_MGSNODE              "mgsnode="          /* during mount */
52 #define PARAM_FAILNODE             "failover.node="    /* llog generation */
53 #define PARAM_FAILMODE             "failover.mode="    /* llog generation */
54 #define PARAM_ACTIVE               "active="           /* llog generation */
55
56 /* Prefixes for parameters handled by obd's proc methods (XXX_process_config) */
57 #define PARAM_OST                  "ost."
58 #define PARAM_OSC                  "osc."
59 #define PARAM_MDT                  "mdt."
60 #define PARAM_MDC                  "mdc."
61 #define PARAM_LLITE                "llite."
62 #define PARAM_LOV                  "lov."
63
64 #endif /* _LUSTRE_PARAM_H */