Whamcloud - gitweb
142c1f187aef7d3058bd81a808709b684bce4f7c
[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_mount.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
34
35 /****************** User-settable parameter keys *********************/
36
37 #define PARAM_MGSNODE          "mgsnode="
38 #define PARAM_FAILNODE         "failnode="
39 #define PARAM_OBD_TIMEOUT      "obd_timeout="
40 #define PARAM_DEFAULT_STRIPE   "default_stripe_"
41 #define PARAM_D_STRIPE_SIZE    PARAM_DEFAULT_STRIPE"size"
42 #define PARAM_D_STRIPE_COUNT   PARAM_DEFAULT_STRIPE"count"
43 #define PARAM_D_STRIPE_OFFSET  PARAM_DEFAULT_STRIPE"offset"
44 #define PARAM_D_STRIPE_PATTERN PARAM_DEFAULT_STRIPE"pattern"
45
46 #endif // _LUSTRE_PARAM_H