X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_param.h;h=cfc510cfc25e4785f37847584052612906a9c402;hb=e550abd05cf7ffddaedbef996be1baaae0912b4a;hp=0b7caf65b4e1f5c492f6c32e69259c52b113bdec;hpb=83ed79c24dcfbe4b65dc019d57f0488c4df53366;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_param.h b/lustre/include/lustre_param.h index 0b7caf6..cfc510c 100644 --- a/lustre/include/lustre_param.h +++ b/lustre/include/lustre_param.h @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -43,11 +43,18 @@ #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_net(char *buf, lnet_nid_t nid); /* obd_mount.c */ int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd, char *s1, char *s2, char *s3, char *s4); @@ -64,12 +71,21 @@ int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd, ... 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." @@ -79,9 +95,12 @@ int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd, #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 */