4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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.
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).
16 * You should have received a copy of the GNU General Public License
17 * version 2 along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 021110-1307, USA
24 * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
25 * Use is subject to license terms.
27 * Copyright (c) 2012, Whamcloud, Inc.
30 * This file is part of Lustre, http://www.lustre.org/
31 * Lustre is a trademark of Sun Microsystems, Inc.
33 * lustre/utils/gss/lsupport.h
36 #ifndef __LSUPPORT_H__
37 #define __LSUPPORT_H__
42 #include <libcfs/libcfs.h>
47 void gssd_init_unique(int type);
48 void gssd_exit_unique(int type);
51 * copied from lustre source
54 #define LUSTRE_GSS_SVC_MGS 0
55 #define LUSTRE_GSS_SVC_MDS 1
56 #define LUSTRE_GSS_SVC_OSS 2
58 extern const char * lustre_svc_name[];
60 struct lgssd_upcall_data {
69 #define GSSD_INTERFACE_VERSION (1)
71 struct lgssd_ioctl_param {
75 int lustre_svc; /* in */
78 long send_token_size;/* in */
79 char *send_token; /* in */
80 long reply_buf_size; /* in */
81 char *reply_buf; /* in */
82 long status; /* out */
83 long reply_length; /* out */
86 #define GSSD_DEFAULT_GETHOSTNAME_EX "/etc/lustre/nid2hostname"
87 #define MAPPING_DATABASE_FILE "/etc/lustre/idmap.conf"
89 int lnet_nid2hostname(lnet_nid_t nid, char *buf, int buflen);
90 void cleanup_mapping(void);
91 int lookup_mapping(char *princ, lnet_nid_t nid, uid_t *uid);
93 #endif /* __LSUPPORT_H__ */