#ifndef _MGS_INTERNAL_H
#define _MGS_INTERNAL_H
-#define MGS_SERVICE_WATCHDOG_TIMEOUT (obd_timeout * 1000)
+#include <linux/lustre_mgs.h>
-static inline struct mgs_obd *mgs_req2mgs(struct ptlrpc_request *req)
-{
- return &req->rq_export->exp_obd->u.mgs;
-}
-
-struct mgs_open_llogs {
- struct list_head mol_list;
- struct dentry *mol_dentry;
- __u64 mod_id;
-};
+/* MDS has o_t * 1000 */
+#define MGS_SERVICE_WATCHDOG_TIMEOUT (obd_timeout * 10)
extern struct lvfs_callback_ops mgs_lvfs_ops;
-#endif /* _MGS_INTERNAL_H */
+int mgs_init_db_list(struct obd_device *obd);
+int mgs_cleanup_db_list(struct obd_device *obd);
+int mgs_check_index(struct obd_device *obd, struct mgs_target_info *mti);
+int mgs_set_index(struct obd_device *obd, struct mgs_target_info *mti);
+int mgs_write_log_target(struct obd_device *obd, struct mgs_target_info *mti);
+int mgs_upgrade_sv_14(struct obd_device *obd, struct mgs_target_info *mti);
+int mgs_erase_logs(struct obd_device *obd, char *fsname);
+
+
+#endif