1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
6 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 only,
10 * as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License version 2 for more details (a copy is included
16 * in the LICENSE file that accompanied this code).
18 * You should have received a copy of the GNU General Public License
19 * version 2 along with this program; If not, see
20 * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
22 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
23 * CA 95054 USA or visit www.sun.com if you need additional information or
29 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
30 * Use is subject to license terms.
33 * Copyright (c) 2011 Whamcloud, Inc.
36 * This file is part of Lustre, http://www.lustre.org/
37 * Lustre is a trademark of Sun Microsystems, Inc.
39 * lustre/include/md_object.h
41 * Extention of lu_object.h for metadata objects
44 #ifndef _LUSTRE_MD_OBJECT_H
45 #define _LUSTRE_MD_OBJECT_H
48 * Sub-class of lu_object with methods common for "meta-data" objects in MDT
51 * Meta-data objects implement namespace operations: you can link, unlink
52 * them, and treat them as directories.
54 * Examples: mdt, cmm, and mdt are implementations of md interface.
60 * super-class definitions.
62 #include <dt_object.h>
65 /* LU-1051, temperary solution to reduce llog credits */
66 #define DECLARE_LLOG_REWRITE 0
67 #define DECLARE_LLOG_WRITE INT_MAX
70 struct md_device_operations;
94 cfs_group_info_t *mu_ginfo;
95 struct md_identity *mu_identity;
102 /** there are at most 5 fids in one operation, see rename, NOTE the last one
103 * is a temporary one used for is_subdir() */
107 struct lu_fid mc_fid[MD_CAPAINFO_MAX];
108 struct lustre_capa *mc_capa[MD_CAPAINFO_MAX];
112 struct obd_export *mq_exp;
116 * Implemented in mdd/mdd_handler.c.
118 * XXX should be moved into separate .h/.c together with all md security
119 * related definitions.
121 struct md_ucred *md_ucred(const struct lu_env *env);
122 struct md_capainfo *md_capainfo(const struct lu_env *env);
123 struct md_quota *md_quota(const struct lu_env *env);
125 /** metadata attributes */
129 MA_COOKIE = (1 << 2),
132 MA_ACL_DEF = (1 << 5),
133 MA_LOV_DEF = (1 << 6),
134 MA_LAY_GEN = (1 << 7),
154 MDT_REG_LOCK = (1 << 0),
155 MDT_PDO_LOCK = (1 << 1)
160 __u32 mh_archive_number;
163 #define IOEPOCH_INVAL 0
176 struct lu_attr ma_attr;
177 struct lu_fid ma_pfid;
178 struct md_hsm ma_hsm;
179 struct lov_mds_md *ma_lmm;
180 struct lmv_stripe_md *ma_lmv;
182 struct llog_cookie *ma_cookie;
183 struct lustre_capa *ma_capa;
184 struct md_som_data *ma_som;
192 /** Additional parameters for create */
195 /** symlink target */
196 const char *sp_symname;
197 /** parent FID for cross-ref mkdir */
198 const struct lu_fid *sp_pfid;
199 /** eadata for regular files */
201 /** lov objs exist already */
202 const struct lu_fid *fid;
207 /** don't create lov objects or llog cookie - this replay */
210 /** Create flag from client: such as MDS_OPEN_CREAT, and others. */
213 /** Should mdd do lookup sanity check or not. */
216 /** Current lock mode for parent dir where create is performing. */
217 mdl_mode_t sp_cr_mode;
219 /** Check for split */
222 /** to create directory */
223 const struct dt_index_features *sp_feat;
227 * Operations implemented for each md object (both directory and leaf).
229 struct md_object_operations {
230 int (*moo_permission)(const struct lu_env *env,
231 struct md_object *pobj, struct md_object *cobj,
232 struct md_attr *attr, int mask);
234 int (*moo_attr_get)(const struct lu_env *env, struct md_object *obj,
235 struct md_attr *attr);
237 int (*moo_attr_set)(const struct lu_env *env, struct md_object *obj,
238 const struct md_attr *attr);
240 int (*moo_xattr_get)(const struct lu_env *env, struct md_object *obj,
241 struct lu_buf *buf, const char *name);
243 int (*moo_xattr_list)(const struct lu_env *env, struct md_object *obj,
246 int (*moo_xattr_set)(const struct lu_env *env, struct md_object *obj,
247 const struct lu_buf *buf, const char *name,
250 int (*moo_xattr_del)(const struct lu_env *env, struct md_object *obj,
253 /** \retval number of bytes actually read upon success */
254 int (*moo_readpage)(const struct lu_env *env, struct md_object *obj,
255 const struct lu_rdpg *rdpg);
257 int (*moo_readlink)(const struct lu_env *env, struct md_object *obj,
259 int (*moo_changelog)(const struct lu_env *env,
260 enum changelog_rec_type type, int flags,
261 struct md_object *obj);
262 /** part of cross-ref operation */
263 int (*moo_object_create)(const struct lu_env *env,
264 struct md_object *obj,
265 const struct md_op_spec *spec,
268 int (*moo_ref_add)(const struct lu_env *env,
269 struct md_object *obj,
270 const struct md_attr *ma);
272 int (*moo_ref_del)(const struct lu_env *env,
273 struct md_object *obj,
276 int (*moo_open)(const struct lu_env *env,
277 struct md_object *obj, int flag);
279 int (*moo_close)(const struct lu_env *env, struct md_object *obj,
280 struct md_attr *ma, int mode);
282 int (*moo_capa_get)(const struct lu_env *, struct md_object *,
283 struct lustre_capa *, int renewal);
285 int (*moo_object_sync)(const struct lu_env *, struct md_object *);
286 int (*moo_path)(const struct lu_env *env, struct md_object *obj,
287 char *path, int pathlen, __u64 *recno, int *linkno);
288 int (*moo_file_lock)(const struct lu_env *env, struct md_object *obj,
289 struct lov_mds_md *lmm, struct ldlm_extent *extent,
290 struct lustre_handle *lockh);
291 int (*moo_file_unlock)(const struct lu_env *env, struct md_object *obj,
292 struct lov_mds_md *lmm,
293 struct lustre_handle *lockh);
297 * Operations implemented for each directory object.
299 struct md_dir_operations {
300 int (*mdo_is_subdir) (const struct lu_env *env, struct md_object *obj,
301 const struct lu_fid *fid, struct lu_fid *sfid);
303 int (*mdo_lookup)(const struct lu_env *env, struct md_object *obj,
304 const struct lu_name *lname, struct lu_fid *fid,
305 struct md_op_spec *spec);
307 mdl_mode_t (*mdo_lock_mode)(const struct lu_env *env,
308 struct md_object *obj,
311 int (*mdo_create)(const struct lu_env *env, struct md_object *pobj,
312 const struct lu_name *lname, struct md_object *child,
313 struct md_op_spec *spec,
316 /** This method is used for creating data object for this meta object*/
317 int (*mdo_create_data)(const struct lu_env *env, struct md_object *p,
319 const struct md_op_spec *spec,
322 int (*mdo_rename)(const struct lu_env *env, struct md_object *spobj,
323 struct md_object *tpobj, const struct lu_fid *lf,
324 const struct lu_name *lsname, struct md_object *tobj,
325 const struct lu_name *ltname, struct md_attr *ma);
327 int (*mdo_link)(const struct lu_env *env, struct md_object *tgt_obj,
328 struct md_object *src_obj, const struct lu_name *lname,
331 int (*mdo_unlink)(const struct lu_env *env, struct md_object *pobj,
332 struct md_object *cobj, const struct lu_name *lname,
335 /** This method is used to compare a requested layout to an existing
336 * layout (struct lov_mds_md_v1/3 vs struct lov_mds_md_v1/3) */
337 int (*mdo_lum_lmm_cmp)(const struct lu_env *env,
338 struct md_object *cobj,
339 const struct md_op_spec *spec,
342 /** partial ops for cross-ref case */
343 int (*mdo_name_insert)(const struct lu_env *env,
344 struct md_object *obj,
345 const struct lu_name *lname,
346 const struct lu_fid *fid,
347 const struct md_attr *ma);
349 int (*mdo_name_remove)(const struct lu_env *env,
350 struct md_object *obj,
351 const struct lu_name *lname,
352 const struct md_attr *ma);
354 int (*mdo_rename_tgt)(const struct lu_env *env, struct md_object *pobj,
355 struct md_object *tobj, const struct lu_fid *fid,
356 const struct lu_name *lname, struct md_attr *ma);
359 struct md_device_operations {
360 /** meta-data device related handlers. */
361 int (*mdo_root_get)(const struct lu_env *env, struct md_device *m,
364 int (*mdo_maxsize_get)(const struct lu_env *env, struct md_device *m,
365 int *md_size, int *cookie_size);
367 int (*mdo_statfs)(const struct lu_env *env, struct md_device *m,
370 int (*mdo_init_capa_ctxt)(const struct lu_env *env, struct md_device *m,
371 int mode, unsigned long timeout, __u32 alg,
372 struct lustre_capa_key *keys);
374 int (*mdo_update_capa_key)(const struct lu_env *env,
376 struct lustre_capa_key *key);
378 int (*mdo_llog_ctxt_get)(const struct lu_env *env,
379 struct md_device *m, int idx, void **h);
381 int (*mdo_iocontrol)(const struct lu_env *env, struct md_device *m,
382 unsigned int cmd, int len, void *data);
384 #ifdef HAVE_QUOTA_SUPPORT
385 struct md_quota_operations {
386 int (*mqo_notify)(const struct lu_env *env,
387 struct md_device *m);
389 int (*mqo_setup)(const struct lu_env *env,
393 int (*mqo_cleanup)(const struct lu_env *env,
394 struct md_device *m);
396 int (*mqo_recovery)(const struct lu_env *env,
397 struct md_device *m);
399 int (*mqo_check)(const struct lu_env *env,
403 int (*mqo_on)(const struct lu_env *env,
407 int (*mqo_off)(const struct lu_env *env,
411 int (*mqo_setinfo)(const struct lu_env *env,
415 struct obd_dqinfo *dqinfo);
417 int (*mqo_getinfo)(const struct lu_env *env,
418 const struct md_device *m,
421 struct obd_dqinfo *dqinfo);
423 int (*mqo_setquota)(const struct lu_env *env,
427 struct obd_dqblk *dqblk);
429 int (*mqo_getquota)(const struct lu_env *env,
430 const struct md_device *m,
433 struct obd_dqblk *dqblk);
435 int (*mqo_getoinfo)(const struct lu_env *env,
436 const struct md_device *m,
439 struct obd_dqinfo *dqinfo);
441 int (*mqo_getoquota)(const struct lu_env *env,
442 const struct md_device *m,
445 struct obd_dqblk *dqblk);
447 int (*mqo_invalidate)(const struct lu_env *env,
451 int (*mqo_finvalidate)(const struct lu_env *env,
458 enum md_upcall_event {
459 /** Sync the md layer*/
460 MD_LOV_SYNC = (1 << 0),
461 /** Just for split, no need trans, for replay */
462 MD_NO_TRANS = (1 << 1),
463 MD_LOV_CONFIG = (1 << 2),
464 /** Trigger quota recovery */
465 MD_LOV_QUOTA = (1 << 3)
469 /** this lock protects upcall using against its removal
470 * read lock is for usage the upcall, write - for init/fini */
471 cfs_rw_semaphore_t mu_upcall_sem;
472 /** device to call, upper layer normally */
473 struct md_device *mu_upcall_dev;
474 /** upcall function */
475 int (*mu_upcall)(const struct lu_env *env, struct md_device *md,
476 enum md_upcall_event ev, void *data);
480 struct lu_device md_lu_dev;
481 const struct md_device_operations *md_ops;
482 struct md_upcall md_upcall;
485 static inline void md_upcall_init(struct md_device *m, void *upcl)
487 cfs_init_rwsem(&m->md_upcall.mu_upcall_sem);
488 m->md_upcall.mu_upcall_dev = NULL;
489 m->md_upcall.mu_upcall = upcl;
492 static inline void md_upcall_dev_set(struct md_device *m, struct md_device *up)
494 cfs_down_write(&m->md_upcall.mu_upcall_sem);
495 m->md_upcall.mu_upcall_dev = up;
496 cfs_up_write(&m->md_upcall.mu_upcall_sem);
499 static inline void md_upcall_fini(struct md_device *m)
501 cfs_down_write(&m->md_upcall.mu_upcall_sem);
502 m->md_upcall.mu_upcall_dev = NULL;
503 m->md_upcall.mu_upcall = NULL;
504 cfs_up_write(&m->md_upcall.mu_upcall_sem);
507 static inline int md_do_upcall(const struct lu_env *env, struct md_device *m,
508 enum md_upcall_event ev, void *data)
511 cfs_down_read(&m->md_upcall.mu_upcall_sem);
512 if (m->md_upcall.mu_upcall_dev != NULL &&
513 m->md_upcall.mu_upcall_dev->md_upcall.mu_upcall != NULL) {
514 rc = m->md_upcall.mu_upcall_dev->md_upcall.mu_upcall(env,
515 m->md_upcall.mu_upcall_dev,
518 cfs_up_read(&m->md_upcall.mu_upcall_sem);
523 struct lu_object mo_lu;
524 const struct md_object_operations *mo_ops;
525 const struct md_dir_operations *mo_dir_ops;
532 struct lu_site ms_lu;
534 * mds number of this site.
538 * Fid location database
540 struct lu_server_fld *ms_server_fld;
541 struct lu_client_fld *ms_client_fld;
546 struct lu_server_seq *ms_server_seq;
549 * Controller Seq Manager
551 struct lu_server_seq *ms_control_seq;
552 struct obd_export *ms_control_exp;
557 struct lu_client_seq *ms_client_seq;
560 static inline int lu_device_is_md(const struct lu_device *d)
562 return ergo(d != NULL, d->ld_type->ldt_tags & LU_DEVICE_MD);
565 static inline struct md_device *lu2md_dev(const struct lu_device *d)
567 LASSERT(IS_ERR(d) || lu_device_is_md(d));
568 return container_of0(d, struct md_device, md_lu_dev);
571 static inline struct lu_device *md2lu_dev(struct md_device *d)
573 return &d->md_lu_dev;
576 static inline struct md_object *lu2md(const struct lu_object *o)
578 LASSERT(o == NULL || IS_ERR(o) || lu_device_is_md(o->lo_dev));
579 return container_of0(o, struct md_object, mo_lu);
582 static inline struct md_object *md_object_next(const struct md_object *obj)
584 return (obj ? lu2md(lu_object_next(&obj->mo_lu)) : NULL);
587 static inline struct md_device *md_obj2dev(const struct md_object *o)
589 LASSERT(o == NULL || IS_ERR(o) || lu_device_is_md(o->mo_lu.lo_dev));
590 return container_of0(o->mo_lu.lo_dev, struct md_device, md_lu_dev);
593 static inline struct md_site *lu_site2md(const struct lu_site *s)
595 return container_of0(s, struct md_site, ms_lu);
598 static inline int md_device_init(struct md_device *md, struct lu_device_type *t)
600 return lu_device_init(&md->md_lu_dev, t);
603 static inline void md_device_fini(struct md_device *md)
605 lu_device_fini(&md->md_lu_dev);
608 static inline struct md_object *md_object_find_slice(const struct lu_env *env,
609 struct md_device *md,
610 const struct lu_fid *f)
612 return lu2md(lu_object_find_slice(env, md2lu_dev(md), f, NULL));
617 static inline int mo_permission(const struct lu_env *env,
623 LASSERT(c->mo_ops->moo_permission);
624 return c->mo_ops->moo_permission(env, p, c, at, mask);
627 static inline int mo_attr_get(const struct lu_env *env,
631 LASSERT(m->mo_ops->moo_attr_get);
632 return m->mo_ops->moo_attr_get(env, m, at);
635 static inline int mo_readlink(const struct lu_env *env,
639 LASSERT(m->mo_ops->moo_readlink);
640 return m->mo_ops->moo_readlink(env, m, buf);
643 static inline int mo_changelog(const struct lu_env *env,
644 enum changelog_rec_type type,
645 int flags, struct md_object *m)
647 LASSERT(m->mo_ops->moo_changelog);
648 return m->mo_ops->moo_changelog(env, type, flags, m);
651 static inline int mo_attr_set(const struct lu_env *env,
653 const struct md_attr *at)
655 LASSERT(m->mo_ops->moo_attr_set);
656 return m->mo_ops->moo_attr_set(env, m, at);
659 static inline int mo_xattr_get(const struct lu_env *env,
664 LASSERT(m->mo_ops->moo_xattr_get);
665 return m->mo_ops->moo_xattr_get(env, m, buf, name);
668 static inline int mo_xattr_del(const struct lu_env *env,
672 LASSERT(m->mo_ops->moo_xattr_del);
673 return m->mo_ops->moo_xattr_del(env, m, name);
676 static inline int mo_xattr_set(const struct lu_env *env,
678 const struct lu_buf *buf,
682 LASSERT(m->mo_ops->moo_xattr_set);
683 return m->mo_ops->moo_xattr_set(env, m, buf, name, flags);
686 static inline int mo_xattr_list(const struct lu_env *env,
690 LASSERT(m->mo_ops->moo_xattr_list);
691 return m->mo_ops->moo_xattr_list(env, m, buf);
694 static inline int mo_open(const struct lu_env *env,
698 LASSERT(m->mo_ops->moo_open);
699 return m->mo_ops->moo_open(env, m, flags);
702 static inline int mo_close(const struct lu_env *env,
707 LASSERT(m->mo_ops->moo_close);
708 return m->mo_ops->moo_close(env, m, ma, mode);
711 static inline int mo_readpage(const struct lu_env *env,
713 const struct lu_rdpg *rdpg)
715 LASSERT(m->mo_ops->moo_readpage);
716 return m->mo_ops->moo_readpage(env, m, rdpg);
719 static inline int mo_object_create(const struct lu_env *env,
721 const struct md_op_spec *spc,
724 LASSERT(m->mo_ops->moo_object_create);
725 return m->mo_ops->moo_object_create(env, m, spc, at);
728 static inline int mo_ref_add(const struct lu_env *env,
730 const struct md_attr *ma)
732 LASSERT(m->mo_ops->moo_ref_add);
733 return m->mo_ops->moo_ref_add(env, m, ma);
736 static inline int mo_ref_del(const struct lu_env *env,
740 LASSERT(m->mo_ops->moo_ref_del);
741 return m->mo_ops->moo_ref_del(env, m, ma);
744 static inline int mo_capa_get(const struct lu_env *env,
746 struct lustre_capa *c,
749 LASSERT(m->mo_ops->moo_capa_get);
750 return m->mo_ops->moo_capa_get(env, m, c, renewal);
753 static inline int mo_path(const struct lu_env *env, struct md_object *m,
754 char *path, int pathlen, __u64 *recno, int *linkno)
756 if (m->mo_ops->moo_path == NULL)
758 return m->mo_ops->moo_path(env, m, path, pathlen, recno, linkno);
761 static inline int mo_object_sync(const struct lu_env *env, struct md_object *m)
763 LASSERT(m->mo_ops->moo_object_sync);
764 return m->mo_ops->moo_object_sync(env, m);
767 static inline int mo_file_lock(const struct lu_env *env, struct md_object *m,
768 struct lov_mds_md *lmm,
769 struct ldlm_extent *extent,
770 struct lustre_handle *lockh)
772 LASSERT(m->mo_ops->moo_file_lock);
773 return m->mo_ops->moo_file_lock(env, m, lmm, extent, lockh);
776 static inline int mo_file_unlock(const struct lu_env *env, struct md_object *m,
777 struct lov_mds_md *lmm,
778 struct lustre_handle *lockh)
780 LASSERT(m->mo_ops->moo_file_unlock);
781 return m->mo_ops->moo_file_unlock(env, m, lmm, lockh);
784 static inline int mdo_lookup(const struct lu_env *env,
786 const struct lu_name *lname,
788 struct md_op_spec *spec)
790 LASSERT(p->mo_dir_ops->mdo_lookup);
791 return p->mo_dir_ops->mdo_lookup(env, p, lname, f, spec);
794 static inline mdl_mode_t mdo_lock_mode(const struct lu_env *env,
795 struct md_object *mo,
798 if (mo->mo_dir_ops->mdo_lock_mode == NULL)
800 return mo->mo_dir_ops->mdo_lock_mode(env, mo, lm);
803 static inline int mdo_create(const struct lu_env *env,
805 const struct lu_name *lchild_name,
807 struct md_op_spec *spc,
810 LASSERT(c->mo_dir_ops->mdo_create);
811 return c->mo_dir_ops->mdo_create(env, p, lchild_name, c, spc, at);
814 static inline int mdo_create_data(const struct lu_env *env,
817 const struct md_op_spec *spec,
820 LASSERT(c->mo_dir_ops->mdo_create_data);
821 return c->mo_dir_ops->mdo_create_data(env, p, c, spec, ma);
824 static inline int mdo_rename(const struct lu_env *env,
825 struct md_object *sp,
826 struct md_object *tp,
827 const struct lu_fid *lf,
828 const struct lu_name *lsname,
830 const struct lu_name *ltname,
833 LASSERT(tp->mo_dir_ops->mdo_rename);
834 return tp->mo_dir_ops->mdo_rename(env, sp, tp, lf, lsname, t, ltname,
838 static inline int mdo_is_subdir(const struct lu_env *env,
839 struct md_object *mo,
840 const struct lu_fid *fid,
843 LASSERT(mo->mo_dir_ops->mdo_is_subdir);
844 return mo->mo_dir_ops->mdo_is_subdir(env, mo, fid, sfid);
847 static inline int mdo_link(const struct lu_env *env,
850 const struct lu_name *lname,
853 LASSERT(s->mo_dir_ops->mdo_link);
854 return s->mo_dir_ops->mdo_link(env, p, s, lname, ma);
857 static inline int mdo_unlink(const struct lu_env *env,
860 const struct lu_name *lname,
863 LASSERT(c->mo_dir_ops->mdo_unlink);
864 return c->mo_dir_ops->mdo_unlink(env, p, c, lname, ma);
867 static inline int mdo_lum_lmm_cmp(const struct lu_env *env,
869 const struct md_op_spec *spec,
872 LASSERT(c->mo_dir_ops->mdo_lum_lmm_cmp);
873 return c->mo_dir_ops->mdo_lum_lmm_cmp(env, c, spec, ma);
876 static inline int mdo_name_insert(const struct lu_env *env,
878 const struct lu_name *lname,
879 const struct lu_fid *f,
880 const struct md_attr *ma)
882 LASSERT(p->mo_dir_ops->mdo_name_insert);
883 return p->mo_dir_ops->mdo_name_insert(env, p, lname, f, ma);
886 static inline int mdo_name_remove(const struct lu_env *env,
888 const struct lu_name *lname,
889 const struct md_attr *ma)
891 LASSERT(p->mo_dir_ops->mdo_name_remove);
892 return p->mo_dir_ops->mdo_name_remove(env, p, lname, ma);
895 static inline int mdo_rename_tgt(const struct lu_env *env,
898 const struct lu_fid *lf,
899 const struct lu_name *lname,
903 LASSERT(t->mo_dir_ops->mdo_rename_tgt);
904 return t->mo_dir_ops->mdo_rename_tgt(env, p, t, lf, lname, ma);
906 LASSERT(p->mo_dir_ops->mdo_rename_tgt);
907 return p->mo_dir_ops->mdo_rename_tgt(env, p, t, lf, lname, ma);
913 * Structure to hold object information. This is used to create object
914 * \pre llod_dir exist
916 struct lu_local_obj_desc {
917 const char *llod_dir;
918 const char *llod_name;
921 const struct dt_index_features *llod_feat;
922 cfs_list_t llod_linkage;
925 struct md_object *llo_store_resolve(const struct lu_env *env,
926 struct md_device *md,
927 struct dt_device *dt,
931 struct md_object *llo_store_open(const struct lu_env *env,
932 struct md_device *md,
933 struct dt_device *dt,
938 struct md_object *llo_store_create_index(const struct lu_env *env,
939 struct md_device *md,
940 struct dt_device *dt,
943 const struct lu_fid *fid,
944 const struct dt_index_features *feat);
946 struct md_object *llo_store_create(const struct lu_env *env,
947 struct md_device *md,
948 struct dt_device *dt,
951 const struct lu_fid *fid);
953 void llo_local_obj_register(struct lu_local_obj_desc *);
954 void llo_local_obj_unregister(struct lu_local_obj_desc *);
956 int llo_local_objects_setup(const struct lu_env *env,
957 struct md_device * md,
958 struct dt_device * dt);
961 #endif /* _LINUX_MD_OBJECT_H */