/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- * vim:expandtab:shiftwidth=8:tabstop=8: */ #ifndef _MDS_INTERNAL_H #define _MDS_INTERNAL_H #include #include int mds_cleanup_pending(struct obd_device *obd); /* mds/mds_log.c */ int mds_llog_init(struct obd_device *obd, int group, struct obd_device *tgt, int count, struct llog_catid *logid, struct obd_uuid *uuid); int mds_llog_finish(struct obd_device *obd, int count); /* mds/mds_lov.c */ int mds_lov_connect(struct obd_device *obd, char * lov_name); int mds_lov_disconnect(struct obd_device *obd); int mds_lov_clear_orphans(struct mds_obd *mds, struct obd_uuid *ost_uuid); void mds_lov_update_objids(struct obd_device *obd, struct lov_mds_md *lmm); int mds_lov_set_nextid(struct obd_device *obd); int mds_lov_start_synchronize(struct obd_device *obd, struct obd_device *watched, void *data, int nonblock); int mds_post_mds_lovconf(struct obd_device *obd); int mds_notify(struct obd_device *obd, struct obd_device *watched, enum obd_notify_event ev, void *data); int mds_convert_lov_ea(struct obd_device *obd, struct inode *inode, struct lov_mds_md *lmm, int lmm_size); int mds_init_lov_desc(struct obd_device *obd, struct obd_export *osc_exp); int mds_obd_create(struct obd_export *exp, struct obdo *oa, struct lov_stripe_md **ea, struct obd_trans_info *oti); int mds_obd_destroy(struct obd_export *exp, struct obdo *oa, struct lov_stripe_md *ea, struct obd_trans_info *oti, struct obd_export *md_exp); /* mds/handler.c */ extern struct lvfs_callback_ops mds_lvfs_ops; /* quota stuff */ extern quota_interface_t *mds_quota_interface_ref; /* mds/lproc_mds.c */ enum { LPROC_MDS_OPEN = 0, LPROC_MDS_CLOSE, LPROC_MDS_MKNOD, LPROC_MDS_LINK, LPROC_MDS_UNLINK, LPROC_MDS_MKDIR, LPROC_MDS_RMDIR, LPROC_MDS_RENAME, LPROC_MDS_GETXATTR, LPROC_MDS_SETXATTR, LPROC_MDS_LAST, }; void mds_counter_incr(struct obd_export *exp, int opcode); void mds_stats_counter_init(struct lprocfs_stats *stats); void lprocfs_mds_init_vars(struct lprocfs_static_vars *lvars); void lprocfs_mdt_init_vars(struct lprocfs_static_vars *lvars); #endif /* _MDS_INTERNAL_H */