#include <linux/lustre_mgs.h>
-#define MGS_SERVICE_WATCHDOG_TIMEOUT (obd_timeout * 1000)
+/* MDS has o_t * 1000 */
+#define MGS_SERVICE_WATCHDOG_TIMEOUT (obd_timeout * 10)
extern struct lvfs_callback_ops mgs_lvfs_ops;
-static inline struct mgs_obd *mgs_req2mgs(struct ptlrpc_request *req)
-{
- return &req->rq_export->exp_obd->u.mgs;
-}
+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