1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2006 Cluster File Systems, Inc.
5 * Author: Nathan Rutman <nathan@clusterfs.com>
7 * This file is part of Lustre, http://www.lustre.org.
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.
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.
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.
23 * User-settable parameter keys
26 #ifndef _LUSTRE_PARAM_H
27 #define _LUSTRE_PARAM_H
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);
34 int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd,
35 char *s1, char *s2, char *s3, char *s4);
39 /****************** User-settable parameter keys *********************/
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 #define PARAM_SEC "security."
52 #define PARAM_SEC_RPC PARAM_SEC"rpc."
53 #define PARAM_SEC_RPC_MDT PARAM_SEC_RPC"mdt="
54 #define PARAM_SEC_RPC_CLI PARAM_SEC_RPC"cli="
55 #define PARAM_ROOTSQUASH PARAM_SEC"rootsquash."
56 #define PARAM_ROOTSQUASH_UID PARAM_ROOTSQUASH"uid="
57 #define PARAM_ROOTSQUASH_GID PARAM_ROOTSQUASH"gid="
58 #define PARAM_ROOTSQUASH_SKIPS PARAM_ROOTSQUASH"skips="
60 #endif // _LUSTRE_PARAM_H