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_MDS 0
24 #define LUSTRE_GSS_SVC_OSS 1
26 extern const char * lustre_svc_name[];
28 struct lgssd_upcall_data {
37 #define GSSD_INTERFACE_VERSION (1)
39 struct lgssd_ioctl_param {
43 int lustre_svc; /* in */
46 long send_token_size;/* in */
47 char *send_token; /* in */
48 long reply_buf_size; /* in */
49 char *reply_buf; /* in */
50 long status; /* out */
51 long reply_length; /* out */
54 #define GSSD_DEFAULT_GETHOSTNAME_EX "/etc/lustre/nid2hostname"
55 #define MAPPING_DATABASE_FILE "/etc/lustre/idmap.conf"
57 int lnet_nid2hostname(lnet_nid_t nid, char *buf, int buflen);
58 void cleanup_mapping(void);
59 int lookup_mapping(char *princ, lnet_nid_t nid, uid_t *uid);
61 #endif /* __LSUPPORT_H__ */