Whamcloud - gitweb
- update from b1_4_mountconf
[fs/lustre-release.git] / lustre / mgs / mgs_internal.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  */
4
5 #ifndef _MGS_INTERNAL_H
6 #define _MGS_INTERNAL_H
7
8 #ifdef __KERNEL__
9 # include <linux/fs.h>
10 #endif
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>
17
18
19 /* MDS has o_t * 1000 */
20 #define MGS_SERVICE_WATCHDOG_TIMEOUT (obd_timeout * 10)
21
22 /* mgs_llog.c */
23 #define FSDB_EMPTY 0x0001
24
25 struct fs_db {
26         char              fsdb_name[8];
27         struct list_head  fsdb_list;
28         struct semaphore  fsdb_sem;
29         void*             fsdb_ost_index_map;
30         void*             fsdb_mdt_index_map;
31         __u32             fsdb_flags;
32         __u32             fsdb_gen;
33 };
34
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);
43
44 /* mgs_fs.c */
45 int mgs_fs_setup(struct obd_device *obd, struct vfsmount *mnt);
46 int mgs_fs_cleanup(struct obd_device *obddev);
47
48
49 #endif