-static int osd_root_get (const struct lu_env *env,
- struct dt_device *dev, struct lu_fid *f);
-
-static int lu_device_is_osd (const struct lu_device *d);
-static void osd_mod_exit (void) __exit;
-static int osd_mod_init (void) __init;
-static int osd_type_init (struct lu_device_type *t);
-static void osd_type_fini (struct lu_device_type *t);
-static int osd_object_init (const struct lu_env *env,
- struct lu_object *l,
- const struct lu_object_conf *_);
-static void osd_object_release(const struct lu_env *env,
- struct lu_object *l);
-static int osd_object_print (const struct lu_env *env, void *cookie,
- lu_printer_t p, const struct lu_object *o);
-static struct lu_device *osd_device_free (const struct lu_env *env,
- struct lu_device *m);
-static void *osd_key_init (const struct lu_context *ctx,
- struct lu_context_key *key);
-static void osd_key_fini (const struct lu_context *ctx,
- struct lu_context_key *key, void *data);
-static void osd_key_exit (const struct lu_context *ctx,
- struct lu_context_key *key, void *data);
-static int osd_has_index (const struct osd_object *obj);
-static void osd_object_init0 (struct osd_object *obj);
-static int osd_device_init (const struct lu_env *env,
- struct lu_device *d, const char *,
- struct lu_device *);
-static int osd_fid_lookup (const struct lu_env *env,
- struct osd_object *obj,
- const struct lu_fid *fid);
-static void osd_inode_getattr (const struct lu_env *env,
- struct inode *inode, struct lu_attr *attr);
-static int osd_inode_setattr (const struct lu_env *env,
- struct inode *inode, const struct lu_attr *attr);
-static int osd_param_is_sane (const struct osd_device *dev,
- const struct txn_param *param);
-static int osd_index_iam_lookup(const struct lu_env *env,
- struct dt_object *dt,
- struct dt_rec *rec, const struct dt_key *key,
- struct lustre_capa *capa);
-static int osd_index_ea_lookup(const struct lu_env *env,
- struct dt_object *dt,
- struct dt_rec *rec, const struct dt_key *key,
- struct lustre_capa *capa);
-static int osd_index_iam_insert(const struct lu_env *env,
- struct dt_object *dt,
- const struct dt_rec *rec,
- const struct dt_key *key,
- struct thandle *handle,
- struct lustre_capa *capa,
- int ingore_quota);
-static int osd_index_ea_insert (const struct lu_env *env,
- struct dt_object *dt,
- const struct dt_rec *rec,
- const struct dt_key *key,
- struct thandle *handle,
- struct lustre_capa *capa,
- int ingore_quota);
-static int osd_index_iam_delete(const struct lu_env *env,
- struct dt_object *dt, const struct dt_key *key,
- struct thandle *handle,
- struct lustre_capa *capa);
-static int osd_index_ea_delete (const struct lu_env *env,
- struct dt_object *dt, const struct dt_key *key,
- struct thandle *handle,
- struct lustre_capa *capa);
-
-static int osd_iam_index_probe (const struct lu_env *env,
- struct osd_object *o,
- const struct dt_index_features *feat);
-static int osd_index_try (const struct lu_env *env,
- struct dt_object *dt,
- const struct dt_index_features *feat);
-static void osd_index_fini (struct osd_object *o);
-
-static void osd_it_iam_fini (const struct lu_env *env, struct dt_it *di);
-static int osd_it_iam_get (const struct lu_env *env,
- struct dt_it *di, const struct dt_key *key);
-static void osd_it_iam_put (const struct lu_env *env, struct dt_it *di);
-static int osd_it_iam_next (const struct lu_env *env, struct dt_it *di);
-static int osd_it_iam_key_size (const struct lu_env *env,
- const struct dt_it *di);
-static void osd_it_ea_fini (const struct lu_env *env, struct dt_it *di);
-static int osd_it_ea_get (const struct lu_env *env,
- struct dt_it *di, const struct dt_key *key);
-static void osd_it_ea_put (const struct lu_env *env, struct dt_it *di);
-static int osd_it_ea_next (const struct lu_env *env, struct dt_it *di);
-static int osd_it_ea_key_size(const struct lu_env *env,
- const struct dt_it *di);
-
-static void osd_conf_get (const struct lu_env *env,
- const struct dt_device *dev,
- struct dt_device_param *param);
-static void osd_trans_stop (const struct lu_env *env,
- struct thandle *th);
-static int osd_object_is_root(const struct osd_object *obj);
-
-static struct osd_object *osd_obj (const struct lu_object *o);
-static struct osd_device *osd_dev (const struct lu_device *d);
-static struct osd_device *osd_dt_dev (const struct dt_device *d);
-static struct osd_object *osd_dt_obj (const struct dt_object *d);
-static struct osd_device *osd_obj2dev (const struct osd_object *o);
-static struct lu_device *osd2lu_dev (struct osd_device *osd);
-static struct lu_device *osd_device_fini (const struct lu_env *env,
- struct lu_device *d);
-static struct lu_device *osd_device_alloc (const struct lu_env *env,
- struct lu_device_type *t,
- struct lustre_cfg *cfg);
-static struct lu_object *osd_object_alloc (const struct lu_env *env,
- const struct lu_object_header *hdr,
- struct lu_device *d);
-static struct inode *osd_iget (struct osd_thread_info *info,
- struct osd_device *dev,
- const struct osd_inode_id *id);
-static struct super_block *osd_sb (const struct osd_device *dev);
-static struct dt_it *osd_it_iam_init (const struct lu_env *env,
- struct dt_object *dt,
- struct lustre_capa *capa);
-static struct dt_key *osd_it_iam_key (const struct lu_env *env,
- const struct dt_it *di);
-static struct dt_rec *osd_it_iam_rec (const struct lu_env *env,
- const struct dt_it *di);
-static struct dt_it *osd_it_ea_init (const struct lu_env *env,
- struct dt_object *dt,
- struct lustre_capa *capa);
-static struct dt_key *osd_it_ea_key (const struct lu_env *env,
- const struct dt_it *di);
-static struct dt_rec *osd_it_ea_rec (const struct lu_env *env,
- const struct dt_it *di);
-
-static struct timespec *osd_inode_time (const struct lu_env *env,
- struct inode *inode,
- __u64 seconds);
-static struct thandle *osd_trans_start (const struct lu_env *env,
- struct dt_device *d,
- struct txn_param *p);
-static journal_t *osd_journal (const struct osd_device *dev);
-
-static int __osd_ea_add_rec(struct osd_thread_info *info,
- struct osd_object *pobj,
- struct osd_object *cobj,
- const char *name,
- struct thandle *th);
-
-static const struct lu_device_type_operations osd_device_type_ops;
-static struct lu_device_type osd_device_type;