X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_param.h;h=78894cf1130dd32605d844bca94ac1483764ca5c;hb=3f3a24dc5d7d421e1514dc49cc7c2eb5cb762b26;hp=cfc510cfc25e4785f37847584052612906a9c402;hpb=3f9acf5544cd6bb46012d9d517183d3af7378a32;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_param.h b/lustre/include/lustre_param.h index cfc510c..78894cf 100644 --- a/lustre/include/lustre_param.h +++ b/lustre/include/lustre_param.h @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -28,6 +26,8 @@ /* * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. + * + * Copyright (c) 2011, 2012, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -43,18 +43,31 @@ #ifndef _LUSTRE_PARAM_H #define _LUSTRE_PARAM_H +#include +#include + /** \defgroup param param * * @{ */ +/* For interoperability */ +struct cfg_interop_param { + char *old_param; + char *new_param; +}; + /* obd_config.c */ int class_find_param(char *buf, char *key, char **valp); +struct cfg_interop_param *class_find_old_param(const char *param, + struct cfg_interop_param *ptr); 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_nid_quiet(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); +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); @@ -81,25 +94,32 @@ int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd, #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_JOBID_VAR "jobid_var=" /* 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 */ +#define PARAM_ID_UPCALL "identity_upcall=" /* identity upcall */ /* 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." +#define PARAM_OST "ost." +#define PARAM_OSD "osd." +#define PARAM_OSC "osc." +#define PARAM_MDT "mdt." +#define PARAM_HSM "mdt.hsm." +#define PARAM_MDD "mdd." +#define PARAM_MDC "mdc." +#define PARAM_LLITE "llite." +#define PARAM_LOV "lov." +#define PARAM_LOD "lod." +#define PARAM_OSP "osp." +#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." +#define PARAM_QUOTA "quota." /* global */ /** @} param */