Whamcloud - gitweb
284c63b5e061212e636e82562a117107f8c2b1f8
[fs/lustre-release.git] / lustre / include / uapi / linux / lustre / lustre_param.h
1 /*
2  * GPL HEADER START
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 only,
8  * as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License version 2 for more details (a copy is included
14  * in the LICENSE file that accompanied this code).
15  *
16  * You should have received a copy of the GNU General Public License
17  * version 2 along with this program; If not, see
18  * http://www.gnu.org/licenses/gpl-2.0.html
19  *
20  * GPL HEADER END
21  */
22 /*
23  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24  * Use is subject to license terms.
25  *
26  * Copyright (c) 2011, 2015, Intel Corporation.
27  */
28 /*
29  * This file is part of Lustre, http://www.lustre.org/
30  *
31  * User-settable parameter keys
32  *
33  * Author: Nathan Rutman <nathan@clusterfs.com>
34  */
35
36 #ifndef _UAPI_LUSTRE_PARAM_H
37 #define _UAPI_LUSTRE_PARAM_H
38
39 /** \defgroup param param
40  *
41  * @{
42  */
43
44 /****************** User-settable parameter keys *********************/
45 /* e.g.
46  *      tunefs.lustre --param="failover.node=192.168.0.13@tcp0" /dev/sda
47  *      lctl conf_param testfs-OST0000 failover.node=3@elan,192.168.0.3@tcp0
48  *                  ... testfs-MDT0000.lov.stripesize=4M
49  *                  ... testfs-OST0000.ost.client_cache_seconds=15
50  *                  ... testfs.sys.timeout=<secs>
51  *                  ... testfs.llite.max_read_ahead_mb=16
52  */
53
54 /* System global or special params not handled in obd's proc
55  * See mgs_write_log_sys()
56  */
57 #define PARAM_TIMEOUT              "timeout="          /* global */
58 #define PARAM_LDLM_TIMEOUT         "ldlm_timeout="     /* global */
59 #define PARAM_AT_MIN               "at_min="           /* global */
60 #define PARAM_AT_MAX               "at_max="           /* global */
61 #define PARAM_AT_EXTRA             "at_extra="         /* global */
62 #define PARAM_AT_EARLY_MARGIN      "at_early_margin="  /* global */
63 #define PARAM_AT_HISTORY           "at_history="       /* global */
64 #define PARAM_JOBID_VAR            "jobid_var="        /* global */
65 #define PARAM_MGSNODE              "mgsnode="          /* only at mounttime */
66 #define PARAM_FAILNODE             "failover.node="    /* add failover nid */
67 #define PARAM_FAILMODE             "failover.mode="    /* initial mount only */
68 #define PARAM_ACTIVE               "active="           /* activate/deactivate */
69 #define PARAM_NETWORK              "network="          /* bind on nid */
70 #define PARAM_ID_UPCALL         "identity_upcall="  /* identity upcall */
71
72 /* Prefixes for parameters handled by obd's proc methods (XXX_process_config) */
73 #define PARAM_OST               "ost."
74 #define PARAM_OSD               "osd."
75 #define PARAM_OSC               "osc."
76 #define PARAM_MDT               "mdt."
77 #define PARAM_HSM               "mdt.hsm."
78 #define PARAM_MDD               "mdd."
79 #define PARAM_MDC               "mdc."
80 #define PARAM_LLITE             "llite."
81 #define PARAM_LOV               "lov."
82 #define PARAM_LOD               "lod."
83 #define PARAM_OSP               "osp."
84 #define PARAM_SYS               "sys."          /* global */
85 #define PARAM_SRPC              "srpc."
86 #define PARAM_SRPC_FLVR         "srpc.flavor."
87 #define PARAM_SRPC_UDESC        "srpc.udesc.cli2mdt"
88 #define PARAM_SEC               "security."
89 #define PARAM_QUOTA             "quota."        /* global */
90
91 /** @} param */
92
93 #endif /* _UAPI_LUSTRE_PARAM_H */