1 #ifndef _MDS_INTERNAL_H
2 #define _MDS_INTERNAL_H
3 static inline struct mds_obd *mds_req2mds(struct ptlrpc_request *req)
5 return &req->rq_export->exp_obd->u.mds;
9 struct llog_handle *mds_log_create(struct obd_device *obd);
10 int mds_log_close(struct llog_handle *cathandle, struct llog_handle *loghandle);
11 struct llog_handle *mds_log_open(struct obd_device *obd,
12 struct llog_cookie *logcookie);
13 struct llog_handle *mds_get_catalog(struct obd_device *obd);
14 void mds_put_catalog(struct llog_handle *cathandle);
17 struct mds_file_data *mds_mfd_new(void);
18 void mds_mfd_put(struct mds_file_data *mfd);
19 void mds_mfd_destroy(struct mds_file_data *mfd);
22 void mds_commit_cb(struct obd_device *, __u64 last_rcvd, void *data, int error);
23 int mds_finish_transno(struct mds_obd *mds, struct inode *inode, void *handle,
24 struct ptlrpc_request *req, int rc, __u32 op_data);
27 int mds_update_unpack(struct ptlrpc_request *, int offset,
28 struct mds_update_record *);
31 int mds_get_lovtgts(struct mds_obd *mds, int tgt_count,
32 struct obd_uuid *uuidarray);
35 int mds_open(struct mds_update_record *rec, int offset,
36 struct ptlrpc_request *req, struct lustre_handle *);
37 int mds_pin(struct ptlrpc_request *req);
40 int mds_client_add(struct obd_device *obd, struct mds_obd *mds,
41 struct mds_export_data *med, int cl_off);
42 int mds_client_free(struct obd_export *exp);
45 void mds_pack_inode2fid(struct ll_fid *fid, struct inode *inode);
46 void mds_pack_inode2body(struct mds_body *body, struct inode *inode);
49 #endif /* _MDS_INTERNAL_H */