1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
11 #include <libcfs/libcfs.h>
16 void gssd_init_unique(int type);
17 void gssd_exit_unique(int type);
20 * copied from lustre source
23 #define LUSTRE_GSS_SVC_MGS 0
24 #define LUSTRE_GSS_SVC_MDS 1
25 #define LUSTRE_GSS_SVC_OSS 2
27 extern const char * lustre_svc_name[];
29 struct lgssd_upcall_data {
38 #define GSSD_INTERFACE_VERSION (1)
40 struct lgssd_ioctl_param {
44 int lustre_svc; /* in */
47 long send_token_size;/* in */
48 char *send_token; /* in */
49 long reply_buf_size; /* in */
50 char *reply_buf; /* in */
51 long status; /* out */
52 long reply_length; /* out */
55 #define GSSD_DEFAULT_GETHOSTNAME_EX "/etc/lustre/nid2hostname"
56 #define MAPPING_DATABASE_FILE "/etc/lustre/idmap.conf"
58 int lnet_nid2hostname(lnet_nid_t nid, char *buf, int buflen);
59 void cleanup_mapping(void);
60 int lookup_mapping(char *princ, lnet_nid_t nid, uid_t *uid);
62 #endif /* __LSUPPORT_H__ */