+++ /dev/null
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
- * This file is part of Lustre, http://www.lustre.org
- *
- * MGS data structures.
- * See also lustre_idl.h for wire formats of requests.
- */
-
-#ifndef _LUSTRE_MGS_H
-#define _LUSTRE_MGS_H
-
-#ifdef __KERNEL__
-# include <linux/fs.h>
-# include <linux/dcache.h>
-#endif
-#include <linux/lustre_handles.h>
-#include <libcfs/kp30.h>
-#include <linux/lustre_idl.h>
-#include <linux/lustre_lib.h>
-#include <linux/lustre_dlm.h>
-#include <linux/lustre_log.h>
-#include <linux/lustre_export.h>
-
-#define FSDB_EMPTY 0x0001
-
-struct fs_db {
- char fsdb_name[8];
- struct list_head fsdb_list;
- struct semaphore fsdb_sem;
- void* fsdb_ost_index_map;
- void* fsdb_mdt_index_map;
- __u32 fsdb_flags;
- __u32 fsdb_gen;
-};
-
-int mgs_fs_setup(struct obd_device *obd, struct vfsmount *mnt);
-int mgs_fs_cleanup(struct obd_device *obddev);
-int mgs_iocontrol(unsigned int cmd, struct obd_export *exp,
- int len, void *karg, void *uarg);
-
-#endif
#include <linux/lustre_log.h>
#include <linux/lustre_fsfilt.h>
#include <linux/lustre_disk.h>
-#include <linux/lustre_mgs.h>
int mgc_logname2resid(char *logname, struct ldlm_res_id *res_id)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
#include <linux/mount.h>
#endif
-#include <linux/lustre_mgs.h>
#include <linux/obd_class.h>
#include <linux/obd_support.h>
#include <linux/lustre_disk.h>
#ifndef _MGS_INTERNAL_H
#define _MGS_INTERNAL_H
-#include <linux/lustre_mgs.h>
+#ifdef __KERNEL__
+# include <linux/fs.h>
+# include <linux/dcache.h>
+#endif
+#include <linux/lustre_handles.h>
+#include <libcfs/kp30.h>
+#include <linux/lustre_idl.h>
+#include <linux/lustre_lib.h>
+#include <linux/lustre_dlm.h>
+#include <linux/lustre_log.h>
+#include <linux/lustre_export.h>
+
/* MDS has o_t * 1000 */
#define MGS_SERVICE_WATCHDOG_TIMEOUT (obd_timeout * 10)
-extern struct lvfs_callback_ops mgs_lvfs_ops;
+/* mgs_llog.c */
+#define FSDB_EMPTY 0x0001
+
+struct fs_db {
+ char fsdb_name[8];
+ struct list_head fsdb_list;
+ struct semaphore fsdb_sem;
+ void* fsdb_ost_index_map;
+ void* fsdb_mdt_index_map;
+ __u32 fsdb_flags;
+ __u32 fsdb_gen;
+};
int mgs_init_fsdb_list(struct obd_device *obd);
int mgs_cleanup_fsdb_list(struct obd_device *obd);
int mgs_erase_logs(struct obd_device *obd, char *fsname);
int mgs_setparam(struct obd_device *obd, char *fsname, struct lustre_cfg *lcfg);
+/* mgs_fs.c */
+int mgs_fs_setup(struct obd_device *obd, struct vfsmount *mnt);
+int mgs_fs_cleanup(struct obd_device *obddev);
+
#endif
#include <linux/lvfs.h>
#include <linux/lustre_fsfilt.h>
#include <linux/lustre_disk.h>
-#include <linux/lustre_mgs.h>
#include "mgs_internal.h"