Whamcloud - gitweb
b=17524
[fs/lustre-release.git] / lustre / include / lustre_param.h
index adff8f1..52b1d29 100644 (file)
@@ -1,26 +1,43 @@
 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
  * vim:expandtab:shiftwidth=8:tabstop=8:
  *
- *  Copyright (C) 2006 Cluster File Systems, Inc.
- *   Author: Nathan Rutman <nathan@clusterfs.com>
+ * GPL HEADER START
  *
- *   This file is part of Lustre, http://www.lustre.org.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
- *   Lustre is free software; you can redistribute it and/or
- *   modify it under the terms of version 2 of the GNU General Public
- *   License as published by the Free Software Foundation.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 only,
+ * as published by the Free Software Foundation.
  *
- *   Lustre is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License version 2 for more details (a copy is included
+ * in the LICENSE file that accompanied this code).
  *
- *   You should have received a copy of the GNU General Public License
- *   along with Lustre; if not, write to the Free Software
- *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * You should have received a copy of the GNU General Public License
+ * version 2 along with this program; If not, see
+ * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
  *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ *
+ * GPL HEADER END
+ */
+/*
+ * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ * Use is subject to license terms.
+ */
+/*
+ * This file is part of Lustre, http://www.lustre.org/
+ * Lustre is a trademark of Sun Microsystems, Inc.
+ *
+ * lustre/include/lustre_param.h
  *
  * User-settable parameter keys
+ *
+ * Author: Nathan Rutman <nathan@clusterfs.com>
  */
 
 #ifndef _LUSTRE_PARAM_H
@@ -37,25 +54,29 @@ int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd,
 
 
 /****************** User-settable parameter keys *********************/
+/* e.g. 
+        tunefs.lustre --param="failover.node=192.168.0.13@tcp0" /dev/sda
+        lctl conf_param testfs-OST0000 failover.node=3@elan,192.168.0.3@tcp0
+                    ... testfs-MDT0000.lov.stripesize=4M
+                    ... testfs-OST0000.ost.client_cache_seconds=15
+                    ... testfs.sys.timeout=<secs> 
+                    ... testfs.llite.max_read_ahead_mb=16
+*/
+
+/* System global or special params not handled in obd's proc */
+#define PARAM_SYS_TIMEOUT          "sys.timeout="      /* global */
+#define PARAM_MGSNODE              "mgsnode="          /* during mount */
+#define PARAM_FAILNODE             "failover.node="    /* llog generation */
+#define PARAM_FAILMODE             "failover.mode="    /* llog generation */
+#define PARAM_ACTIVE               "active="           /* llog generation */
+#define PARAM_MDT_UPCALL           "mdt.group_upcall=" /* mds group upcall */
 
-#define PARAM_SYS_TIMEOUT          "sys.timeout="
-#define PARAM_MGSNODE              "mgsnode="
-#define PARAM_FAILNODE             "failover.node="
-#define PARAM_FAILMODE             "failover.mode="
+/* Prefixes for parameters handled by obd's proc methods (XXX_process_config) */
 #define PARAM_OST                  "ost."
 #define PARAM_OSC                  "osc."
 #define PARAM_MDT                  "mdt."
 #define PARAM_MDC                  "mdc."
 #define PARAM_LLITE                "llite."
 #define PARAM_LOV                  "lov."
-/* LOV_STRIPE_* aren't settable in proc. But match the proc names. */
-#define PARAM_LOV_STRIPE_SIZE      PARAM_LOV"stripesize="
-#define PARAM_LOV_STRIPE_COUNT     PARAM_LOV"stripecount="
-#define PARAM_LOV_STRIPE_OFFSET    PARAM_LOV"stripeoffset="
-#define PARAM_LOV_STRIPE_PATTERN   PARAM_LOV"stripetype="
-#define PARAM_SEC                  "security."
-#define PARAM_SEC_RPC              PARAM_SEC"rpc."
-#define PARAM_SEC_RPC_MDT          PARAM_SEC_RPC"mdt="
-#define PARAM_SEC_RPC_CLI          PARAM_SEC_RPC"cli="
-
-#endif // _LUSTRE_PARAM_H
+
+#endif /* _LUSTRE_PARAM_H */