From: nathan Date: Wed, 22 Feb 2006 18:58:37 +0000 (+0000) Subject: Branch b1_4_mountconf X-Git-Tag: v1_8_0_110~486^4~28 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b90e9e94ca3be17550741e26170b4505d6166111;p=fs%2Flustre-release.git Branch b1_4_mountconf b=8007 get rid of unneeded lustre_mgs.h --- diff --git a/lustre/include/linux/lustre_mgs.h b/lustre/include/linux/lustre_mgs.h deleted file mode 100644 index e9638a6..0000000 --- a/lustre/include/linux/lustre_mgs.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- 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 -# include -#endif -#include -#include -#include -#include -#include -#include -#include - -#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 diff --git a/lustre/mgc/mgc_request.c b/lustre/mgc/mgc_request.c index 463eaca..8cd9bab 100644 --- a/lustre/mgc/mgc_request.c +++ b/lustre/mgc/mgc_request.c @@ -48,7 +48,6 @@ #include #include #include -#include int mgc_logname2resid(char *logname, struct ldlm_res_id *res_id) diff --git a/lustre/mgs/mgs_fs.c b/lustre/mgs/mgs_fs.c index db0b5f7..868db40 100644 --- a/lustre/mgs/mgs_fs.c +++ b/lustre/mgs/mgs_fs.c @@ -35,7 +35,6 @@ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)) #include #endif -#include #include #include #include diff --git a/lustre/mgs/mgs_internal.h b/lustre/mgs/mgs_internal.h index 79e8c71..01d17a3 100644 --- a/lustre/mgs/mgs_internal.h +++ b/lustre/mgs/mgs_internal.h @@ -5,12 +5,34 @@ #ifndef _MGS_INTERNAL_H #define _MGS_INTERNAL_H -#include +#ifdef __KERNEL__ +# include +# include +#endif +#include +#include +#include +#include +#include +#include +#include + /* 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); @@ -20,5 +42,9 @@ int mgs_upgrade_sv_14(struct obd_device *obd, struct mgs_target_info *mti); 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 diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c index 9fe3af1..518b101 100644 --- a/lustre/mgs/mgs_llog.c +++ b/lustre/mgs/mgs_llog.c @@ -43,7 +43,6 @@ #include #include #include -#include #include "mgs_internal.h"