X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmds%2Fmds_internal.h;h=f20e42e4fe4351f8b0b9247686c227574b2a7fa8;hb=ca9d46da5bdd9a9fcce88ea8b1cfc928054606a7;hp=488ca7cdae5da5a2a663bb2410e1b6ffbb7d72a9;hpb=02b88a2a3bd8d5a01b8b78c4c410663cf7222660;p=fs%2Flustre-release.git diff --git a/lustre/mds/mds_internal.h b/lustre/mds/mds_internal.h index 488ca7c..f20e42e 100644 --- a/lustre/mds/mds_internal.h +++ b/lustre/mds/mds_internal.h @@ -6,6 +6,7 @@ #define _MDS_INTERNAL_H #include +#include #define MDS_SERVICE_WATCHDOG_TIMEOUT 30000 @@ -132,6 +133,8 @@ struct mds_idmap_table *mds_idmap_alloc(void); void mds_idmap_free(struct mds_idmap_table *tbl); void mds_body_do_reverse_map(struct mds_export_data *med, struct mds_body *body); +int mds_remote_perm_do_reverse_map(struct mds_export_data *med, + struct mds_remote_perm *perm); int mds_init_ucred(struct lvfs_ucred *ucred, struct ptlrpc_request *req, struct mds_req_sec_desc *rsd); void mds_exit_ucred(struct lvfs_ucred *ucred); @@ -338,6 +341,12 @@ int mds_parse_id(struct ptlrpc_request *req); /* mds_audit.c */ int mds_set_audit(struct obd_device * obd, void * val); int mds_pack_audit(struct obd_device *, struct inode *, struct mds_body *); +int mds_audit_auth(struct ptlrpc_request *, struct lvfs_ucred *, + audit_op, struct lustre_id *, char *, int); +int mds_audit_stat(struct ptlrpc_request *, struct lustre_id *, + struct inode *, char*, int, int); +int mds_audit_open(struct ptlrpc_request *, struct lustre_id *, + struct inode *, char*, int, int); /* mds_acl.c */ struct upcall_cache *__mds_get_global_rmtacl_upcall_cache(void); @@ -353,8 +362,12 @@ void mds_capa_keys_cleanup(struct obd_device *obd); void mds_capa_key_timer_callback(unsigned long data); int mds_capa_key_start_thread(void); void mds_capa_key_stop_thread(void); -int mds_pack_capa(struct obd_device *obd, struct mds_body *req_body, - struct lustre_capa *req_capa, struct lustre_msg *repmsg, - int *offset, struct mds_body *body); +int mds_pack_capa(struct obd_device *obd, struct mds_export_data *med, + struct mds_body *req_body, struct lustre_capa *req_capa, + struct ptlrpc_request *req, int *offset, + struct mds_body *body); +void mds_update_capa_stat(struct obd_device *obd, int stat); +void mds_update_capa_timeout(struct obd_device *obd, unsigned long timeout); +int mds_update_capa_key_timeout(struct obd_device *obd, unsigned long timeout); #endif /* _MDS_INTERNAL_H */