1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
5 #ifndef _MGS_INTERNAL_H
6 #define _MGS_INTERNAL_H
11 #include <libcfs/kp30.h>
12 #include <lustre/lustre_idl.h>
13 #include <lustre_lib.h>
14 #include <lustre_dlm.h>
15 #include <lustre_log.h>
16 #include <lustre_export.h>
19 /* MDS has o_t * 1000 */
20 #define MGS_SERVICE_WATCHDOG_TIMEOUT (obd_timeout * 10)
23 #define FSDB_EMPTY 0x0001
27 struct list_head fsdb_list;
28 struct semaphore fsdb_sem;
29 void* fsdb_ost_index_map;
30 void* fsdb_mdt_index_map;
35 int mgs_init_fsdb_list(struct obd_device *obd);
36 int mgs_cleanup_fsdb_list(struct obd_device *obd);
37 int mgs_check_index(struct obd_device *obd, struct mgs_target_info *mti);
38 int mgs_check_failnid(struct obd_device *obd, struct mgs_target_info *mti);
39 int mgs_write_log_target(struct obd_device *obd, struct mgs_target_info *mti);
40 int mgs_upgrade_sv_14(struct obd_device *obd, struct mgs_target_info *mti);
41 int mgs_erase_logs(struct obd_device *obd, char *fsname);
42 int mgs_setparam(struct obd_device *obd, char *fsname, struct lustre_cfg *lcfg);
45 int mgs_fs_setup(struct obd_device *obd, struct vfsmount *mnt);
46 int mgs_fs_cleanup(struct obd_device *obddev);