X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_param.h;h=54a1f6bdf49bb7d2f11b041c89095fc0d187a0c8;hb=d5134534ccbfebdf9e64a5afda8e07bbb5414961;hp=afcc851787459ab45d61941999cd30a8f6cec747;hpb=3192e52a89946f12fd36d28a686c169d01d36e64;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_param.h b/lustre/include/lustre_param.h index afcc851..54a1f6b 100644 --- a/lustre/include/lustre_param.h +++ b/lustre/include/lustre_param.h @@ -1,35 +1,61 @@ /* -*- 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 + * 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 (c) 2007, 2010, Oracle and/or its affiliates. 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 */ #ifndef _LUSTRE_PARAM_H #define _LUSTRE_PARAM_H +/** \defgroup param param + * + * @{ + */ + /* obd_config.c */ int class_find_param(char *buf, char *key, char **valp); +int class_get_next_param(char **params, char *copy); int class_match_param(char *buf, char *key, char **valp); int class_parse_nid(char *buf, lnet_nid_t *nid, char **endh); +int class_parse_net(char *buf, __u32 *net, char **endh); +int class_match_nid(char *buf, char *key, lnet_nid_t nid); +int class_match_net(char *buf, char *key, __u32 net); /* obd_mount.c */ int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd, char *s1, char *s2, char *s3, char *s4); @@ -37,32 +63,45 @@ int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd, /****************** User-settable parameter keys *********************/ -/* e.g. +/* 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= + ... testfs.sys.timeout= ... 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 */ +/* System global or special params not handled in obd's proc + * See mgs_write_log_sys() + */ +#define PARAM_TIMEOUT "timeout=" /* global */ +#define PARAM_LDLM_TIMEOUT "ldlm_timeout=" /* global */ +#define PARAM_AT_MIN "at_min=" /* global */ +#define PARAM_AT_MAX "at_max=" /* global */ +#define PARAM_AT_EXTRA "at_extra=" /* global */ +#define PARAM_AT_EARLY_MARGIN "at_early_margin=" /* global */ +#define PARAM_AT_HISTORY "at_history=" /* global */ +#define PARAM_MGSNODE "mgsnode=" /* only at mounttime */ +#define PARAM_FAILNODE "failover.node=" /* add failover nid */ +#define PARAM_FAILMODE "failover.mode=" /* initial mount only */ +#define PARAM_ACTIVE "active=" /* activate/deactivate */ +#define PARAM_NETWORK "network=" /* bind on nid */ /* 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_MDD "mdd." #define PARAM_MDC "mdc." #define PARAM_LLITE "llite." #define PARAM_LOV "lov." +#define PARAM_SYS "sys." /* global */ #define PARAM_SRPC "srpc." #define PARAM_SRPC_FLVR "srpc.flavor." #define PARAM_SRPC_UDESC "srpc.udesc.cli2mdt" #define PARAM_SEC "security." +/** @} param */ + #endif /* _LUSTRE_PARAM_H */