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>
66 struct md_device_operations;
90 cfs_group_info_t *mu_ginfo;
91 struct md_identity *mu_identity;
98 /** there are at most 5 fids in one operation, see rename, NOTE the last one
99 * is a temporary one used for is_subdir() */
103 const struct lu_fid *mc_fid[MD_CAPAINFO_MAX];
104 struct lustre_capa *mc_capa[MD_CAPAINFO_MAX];
108 struct obd_export *mq_exp;
112 * Implemented in mdd/mdd_handler.c.
114 * XXX should be moved into separate .h/.c together with all md security
115 * related definitions.
117 struct md_ucred *md_ucred(const struct lu_env *env);
118 struct md_capainfo *md_capainfo(const struct lu_env *env);
119 struct md_quota *md_quota(const struct lu_env *env);
121 /** metadata attributes */
125 MA_COOKIE = (1 << 2),
128 MA_ACL_DEF = (1 << 5),
129 MA_LOV_DEF = (1 << 6),
130 /* (Layout lock will used #7 here) */
150 MDT_REG_LOCK = (1 << 0),
151 MDT_PDO_LOCK = (1 << 1)
156 __u32 mh_archive_number;
159 #define IOEPOCH_INVAL 0
172 struct lu_attr ma_attr;
173 struct lov_mds_md *ma_lmm;
175 struct lmv_stripe_md *ma_lmv;
179 struct llog_cookie *ma_cookie;
181 struct lustre_capa *ma_capa;
182 struct md_hsm ma_hsm;
183 struct md_som_data *ma_som;
184 struct lu_fid ma_pfid;
187 /** Additional parameters for create */
190 /** symlink target */
191 const char *sp_symname;
192 /** parent FID for cross-ref mkdir */
193 const struct lu_fid *sp_pfid;
194 /** eadata for regular files */
196 /** lov objs exist already */
197 const struct lu_fid *fid;
202 /** don't create lov objects or llog cookie - this replay */
205 /** Create flag from client: such as MDS_OPEN_CREAT, and others. */
208 /** Should mdd do lookup sanity check or not. */
211 /** Current lock mode for parent dir where create is performing. */
212 mdl_mode_t sp_cr_mode;
214 /** Check for split */
217 /** to create directory */
218 const struct dt_index_features *sp_feat;
222 * Operations implemented for each md object (both directory and leaf).
224 struct md_object_operations {
225 int (*moo_permission)(const struct lu_env *env,
226 struct md_object *pobj, struct md_object *cobj,
227 struct md_attr *attr, int mask);
229 int (*moo_attr_get)(const struct lu_env *env, struct md_object *obj,
230 struct md_attr *attr);
232 int (*moo_attr_set)(const struct lu_env *env, struct md_object *obj,
233 const struct md_attr *attr);
235 int (*moo_xattr_get)(const struct lu_env *env, struct md_object *obj,
236 struct lu_buf *buf, const char *name);
238 int (*moo_xattr_list)(const struct lu_env *env, struct md_object *obj,
241 int (*moo_xattr_set)(const struct lu_env *env, struct md_object *obj,
242 const struct lu_buf *buf, const char *name,
245 int (*moo_xattr_del)(const struct lu_env *env, struct md_object *obj,
248 /** \retval number of bytes actually read upon success */
249 int (*moo_readpage)(const struct lu_env *env, struct md_object *obj,
250 const struct lu_rdpg *rdpg);
252 int (*moo_readlink)(const struct lu_env *env, struct md_object *obj,
254 int (*moo_changelog)(const struct lu_env *env,
255 enum changelog_rec_type type, int flags,
256 struct md_object *obj);
257 /** part of cross-ref operation */
258 int (*moo_object_create)(const struct lu_env *env,
259 struct md_object *obj,
260 const struct md_op_spec *spec,
263 int (*moo_ref_add)(const struct lu_env *env,
264 struct md_object *obj,
265 const struct md_attr *ma);
267 int (*moo_ref_del)(const struct lu_env *env,
268 struct md_object *obj,
271 int (*moo_open)(const struct lu_env *env,
272 struct md_object *obj, int flag);
274 int (*moo_close)(const struct lu_env *env, struct md_object *obj,
277 int (*moo_capa_get)(const struct lu_env *, struct md_object *,
278 struct lustre_capa *, int renewal);
280 int (*moo_object_sync)(const struct lu_env *, struct md_object *);
281 dt_obj_version_t (*moo_version_get)(const struct lu_env *,
283 void (*moo_version_set)(const struct lu_env *, struct md_object *,
285 int (*moo_path)(const struct lu_env *env, struct md_object *obj,
286 char *path, int pathlen, __u64 *recno, int *linkno);
287 int (*moo_file_lock)(const struct lu_env *env, struct md_object *obj,
288 struct lov_mds_md *lmm, struct ldlm_extent *extent,
289 struct lustre_handle *lockh);
290 int (*moo_file_unlock)(const struct lu_env *env, struct md_object *obj,
291 struct lov_mds_md *lmm,
292 struct lustre_handle *lockh);
296 * Operations implemented for each directory object.
298 struct md_dir_operations {
299 int (*mdo_is_subdir) (const struct lu_env *env, struct md_object *obj,
300 const struct lu_fid *fid, struct lu_fid *sfid);
302 int (*mdo_lookup)(const struct lu_env *env, struct md_object *obj,
303 const struct lu_name *lname, struct lu_fid *fid,
304 struct md_op_spec *spec);
306 mdl_mode_t (*mdo_lock_mode)(const struct lu_env *env,
307 struct md_object *obj,
310 int (*mdo_create)(const struct lu_env *env, struct md_object *pobj,
311 const struct lu_name *lname, struct md_object *child,
312 struct md_op_spec *spec,
315 /** This method is used for creating data object for this meta object*/
316 int (*mdo_create_data)(const struct lu_env *env, struct md_object *p,
318 const struct md_op_spec *spec,
321 int (*mdo_rename)(const struct lu_env *env, struct md_object *spobj,
322 struct md_object *tpobj, const struct lu_fid *lf,
323 const struct lu_name *lsname, struct md_object *tobj,
324 const struct lu_name *ltname, struct md_attr *ma);
326 int (*mdo_link)(const struct lu_env *env, struct md_object *tgt_obj,
327 struct md_object *src_obj, const struct lu_name *lname,
330 int (*mdo_unlink)(const struct lu_env *env, struct md_object *pobj,
331 struct md_object *cobj, const struct lu_name *lname,
334 /** partial ops for cross-ref case */
335 int (*mdo_name_insert)(const struct lu_env *env,
336 struct md_object *obj,
337 const struct lu_name *lname,
338 const struct lu_fid *fid,
339 const struct md_attr *ma);
341 int (*mdo_name_remove)(const struct lu_env *env,
342 struct md_object *obj,
343 const struct lu_name *lname,
344 const struct md_attr *ma);
346 int (*mdo_rename_tgt)(const struct lu_env *env, struct md_object *pobj,
347 struct md_object *tobj, const struct lu_fid *fid,
348 const struct lu_name *lname, struct md_attr *ma);
351 struct md_device_operations {
352 /** meta-data device related handlers. */
353 int (*mdo_root_get)(const struct lu_env *env, struct md_device *m,
356 int (*mdo_maxsize_get)(const struct lu_env *env, struct md_device *m,
357 int *md_size, int *cookie_size);
359 int (*mdo_statfs)(const struct lu_env *env, struct md_device *m,
362 int (*mdo_init_capa_ctxt)(const struct lu_env *env, struct md_device *m,
363 int mode, unsigned long timeout, __u32 alg,
364 struct lustre_capa_key *keys);
366 int (*mdo_update_capa_key)(const struct lu_env *env,
368 struct lustre_capa_key *key);
370 int (*mdo_llog_ctxt_get)(const struct lu_env *env,
371 struct md_device *m, int idx, void **h);
373 int (*mdo_iocontrol)(const struct lu_env *env, struct md_device *m,
374 unsigned int cmd, int len, void *data);
376 #ifdef HAVE_QUOTA_SUPPORT
377 struct md_quota_operations {
378 int (*mqo_notify)(const struct lu_env *env,
379 struct md_device *m);
381 int (*mqo_setup)(const struct lu_env *env,
385 int (*mqo_cleanup)(const struct lu_env *env,
386 struct md_device *m);
388 int (*mqo_recovery)(const struct lu_env *env,
389 struct md_device *m);
391 int (*mqo_check)(const struct lu_env *env,
395 int (*mqo_on)(const struct lu_env *env,
399 int (*mqo_off)(const struct lu_env *env,
403 int (*mqo_setinfo)(const struct lu_env *env,
407 struct obd_dqinfo *dqinfo);
409 int (*mqo_getinfo)(const struct lu_env *env,
410 const struct md_device *m,
413 struct obd_dqinfo *dqinfo);
415 int (*mqo_setquota)(const struct lu_env *env,
419 struct obd_dqblk *dqblk);
421 int (*mqo_getquota)(const struct lu_env *env,
422 const struct md_device *m,
425 struct obd_dqblk *dqblk);
427 int (*mqo_getoinfo)(const struct lu_env *env,
428 const struct md_device *m,
431 struct obd_dqinfo *dqinfo);
433 int (*mqo_getoquota)(const struct lu_env *env,
434 const struct md_device *m,
437 struct obd_dqblk *dqblk);
439 int (*mqo_invalidate)(const struct lu_env *env,
443 int (*mqo_finvalidate)(const struct lu_env *env,
450 enum md_upcall_event {
451 /** Sync the md layer*/
452 MD_LOV_SYNC = (1 << 0),
453 /** Just for split, no need trans, for replay */
454 MD_NO_TRANS = (1 << 1),
455 MD_LOV_CONFIG = (1 << 2),
456 /** Trigger quota recovery */
457 MD_LOV_QUOTA = (1 << 3)
461 /** this lock protects upcall using against its removal
462 * read lock is for usage the upcall, write - for init/fini */
463 cfs_rw_semaphore_t mu_upcall_sem;
464 /** device to call, upper layer normally */
465 struct md_device *mu_upcall_dev;
466 /** upcall function */
467 int (*mu_upcall)(const struct lu_env *env, struct md_device *md,
468 enum md_upcall_event ev, void *data);
472 struct lu_device md_lu_dev;
473 const struct md_device_operations *md_ops;
474 struct md_upcall md_upcall;
477 static inline void md_upcall_init(struct md_device *m, void *upcl)
479 cfs_init_rwsem(&m->md_upcall.mu_upcall_sem);
480 m->md_upcall.mu_upcall_dev = NULL;
481 m->md_upcall.mu_upcall = upcl;
484 static inline void md_upcall_dev_set(struct md_device *m, struct md_device *up)
486 cfs_down_write(&m->md_upcall.mu_upcall_sem);
487 m->md_upcall.mu_upcall_dev = up;
488 cfs_up_write(&m->md_upcall.mu_upcall_sem);
491 static inline void md_upcall_fini(struct md_device *m)
493 cfs_down_write(&m->md_upcall.mu_upcall_sem);
494 m->md_upcall.mu_upcall_dev = NULL;
495 m->md_upcall.mu_upcall = NULL;
496 cfs_up_write(&m->md_upcall.mu_upcall_sem);
499 static inline int md_do_upcall(const struct lu_env *env, struct md_device *m,
500 enum md_upcall_event ev, void *data)
503 cfs_down_read(&m->md_upcall.mu_upcall_sem);
504 if (m->md_upcall.mu_upcall_dev != NULL &&
505 m->md_upcall.mu_upcall_dev->md_upcall.mu_upcall != NULL) {
506 rc = m->md_upcall.mu_upcall_dev->md_upcall.mu_upcall(env,
507 m->md_upcall.mu_upcall_dev,
510 cfs_up_read(&m->md_upcall.mu_upcall_sem);
515 struct lu_object mo_lu;
516 const struct md_object_operations *mo_ops;
517 const struct md_dir_operations *mo_dir_ops;
524 struct lu_site ms_lu;
526 * mds number of this site.
530 * Fid location database
532 struct lu_server_fld *ms_server_fld;
533 struct lu_client_fld *ms_client_fld;
538 struct lu_server_seq *ms_server_seq;
541 * Controller Seq Manager
543 struct lu_server_seq *ms_control_seq;
544 struct obd_export *ms_control_exp;
549 struct lu_client_seq *ms_client_seq;
552 static inline int lu_device_is_md(const struct lu_device *d)
554 return ergo(d != NULL, d->ld_type->ldt_tags & LU_DEVICE_MD);
557 static inline struct md_device *lu2md_dev(const struct lu_device *d)
559 LASSERT(IS_ERR(d) || lu_device_is_md(d));
560 return container_of0(d, struct md_device, md_lu_dev);
563 static inline struct lu_device *md2lu_dev(struct md_device *d)
565 return &d->md_lu_dev;
568 static inline struct md_object *lu2md(const struct lu_object *o)
570 LASSERT(o == NULL || IS_ERR(o) || lu_device_is_md(o->lo_dev));
571 return container_of0(o, struct md_object, mo_lu);
574 static inline struct md_object *md_object_next(const struct md_object *obj)
576 return (obj ? lu2md(lu_object_next(&obj->mo_lu)) : NULL);
579 static inline struct md_device *md_obj2dev(const struct md_object *o)
581 LASSERT(o == NULL || IS_ERR(o) || lu_device_is_md(o->mo_lu.lo_dev));
582 return container_of0(o->mo_lu.lo_dev, struct md_device, md_lu_dev);
585 static inline struct md_site *lu_site2md(const struct lu_site *s)
587 return container_of0(s, struct md_site, ms_lu);
590 static inline int md_device_init(struct md_device *md, struct lu_device_type *t)
592 return lu_device_init(&md->md_lu_dev, t);
595 static inline void md_device_fini(struct md_device *md)
597 lu_device_fini(&md->md_lu_dev);
600 static inline struct md_object *md_object_find_slice(const struct lu_env *env,
601 struct md_device *md,
602 const struct lu_fid *f)
604 return lu2md(lu_object_find_slice(env, md2lu_dev(md), f, NULL));
609 static inline int mo_permission(const struct lu_env *env,
615 LASSERT(c->mo_ops->moo_permission);
616 return c->mo_ops->moo_permission(env, p, c, at, mask);
619 static inline int mo_attr_get(const struct lu_env *env,
623 LASSERT(m->mo_ops->moo_attr_get);
624 return m->mo_ops->moo_attr_get(env, m, at);
627 static inline int mo_readlink(const struct lu_env *env,
631 LASSERT(m->mo_ops->moo_readlink);
632 return m->mo_ops->moo_readlink(env, m, buf);
635 static inline int mo_changelog(const struct lu_env *env,
636 enum changelog_rec_type type,
637 int flags, struct md_object *m)
639 LASSERT(m->mo_ops->moo_changelog);
640 return m->mo_ops->moo_changelog(env, type, flags, m);
643 static inline int mo_attr_set(const struct lu_env *env,
645 const struct md_attr *at)
647 LASSERT(m->mo_ops->moo_attr_set);
648 return m->mo_ops->moo_attr_set(env, m, at);
651 static inline int mo_xattr_get(const struct lu_env *env,
656 LASSERT(m->mo_ops->moo_xattr_get);
657 return m->mo_ops->moo_xattr_get(env, m, buf, name);
660 static inline int mo_xattr_del(const struct lu_env *env,
664 LASSERT(m->mo_ops->moo_xattr_del);
665 return m->mo_ops->moo_xattr_del(env, m, name);
668 static inline int mo_xattr_set(const struct lu_env *env,
670 const struct lu_buf *buf,
674 LASSERT(m->mo_ops->moo_xattr_set);
675 return m->mo_ops->moo_xattr_set(env, m, buf, name, flags);
678 static inline int mo_xattr_list(const struct lu_env *env,
682 LASSERT(m->mo_ops->moo_xattr_list);
683 return m->mo_ops->moo_xattr_list(env, m, buf);
686 static inline int mo_open(const struct lu_env *env,
690 LASSERT(m->mo_ops->moo_open);
691 return m->mo_ops->moo_open(env, m, flags);
694 static inline int mo_close(const struct lu_env *env,
698 LASSERT(m->mo_ops->moo_close);
699 return m->mo_ops->moo_close(env, m, ma);
702 static inline int mo_readpage(const struct lu_env *env,
704 const struct lu_rdpg *rdpg)
706 LASSERT(m->mo_ops->moo_readpage);
707 return m->mo_ops->moo_readpage(env, m, rdpg);
710 static inline int mo_object_create(const struct lu_env *env,
712 const struct md_op_spec *spc,
715 LASSERT(m->mo_ops->moo_object_create);
716 return m->mo_ops->moo_object_create(env, m, spc, at);
719 static inline int mo_ref_add(const struct lu_env *env,
721 const struct md_attr *ma)
723 LASSERT(m->mo_ops->moo_ref_add);
724 return m->mo_ops->moo_ref_add(env, m, ma);
727 static inline int mo_ref_del(const struct lu_env *env,
731 LASSERT(m->mo_ops->moo_ref_del);
732 return m->mo_ops->moo_ref_del(env, m, ma);
735 static inline int mo_capa_get(const struct lu_env *env,
737 struct lustre_capa *c,
740 LASSERT(m->mo_ops->moo_capa_get);
741 return m->mo_ops->moo_capa_get(env, m, c, renewal);
744 static inline int mo_path(const struct lu_env *env, struct md_object *m,
745 char *path, int pathlen, __u64 *recno, int *linkno)
747 if (m->mo_ops->moo_path == NULL)
749 return m->mo_ops->moo_path(env, m, path, pathlen, recno, linkno);
752 static inline int mo_object_sync(const struct lu_env *env, struct md_object *m)
754 LASSERT(m->mo_ops->moo_object_sync);
755 return m->mo_ops->moo_object_sync(env, m);
758 static inline dt_obj_version_t mo_version_get(const struct lu_env *env,
761 LASSERT(m->mo_ops->moo_version_get);
762 return m->mo_ops->moo_version_get(env, m);
765 static inline void mo_version_set(const struct lu_env *env,
766 struct md_object *m, dt_obj_version_t ver)
768 LASSERT(m->mo_ops->moo_version_set);
769 return m->mo_ops->moo_version_set(env, m, ver);
772 static inline int mo_file_lock(const struct lu_env *env, struct md_object *m,
773 struct lov_mds_md *lmm,
774 struct ldlm_extent *extent,
775 struct lustre_handle *lockh)
777 LASSERT(m->mo_ops->moo_file_lock);
778 return m->mo_ops->moo_file_lock(env, m, lmm, extent, lockh);
781 static inline int mo_file_unlock(const struct lu_env *env, struct md_object *m,
782 struct lov_mds_md *lmm,
783 struct lustre_handle *lockh)
785 LASSERT(m->mo_ops->moo_file_unlock);
786 return m->mo_ops->moo_file_unlock(env, m, lmm, lockh);
789 static inline int mdo_lookup(const struct lu_env *env,
791 const struct lu_name *lname,
793 struct md_op_spec *spec)
795 LASSERT(p->mo_dir_ops->mdo_lookup);
796 return p->mo_dir_ops->mdo_lookup(env, p, lname, f, spec);
799 static inline mdl_mode_t mdo_lock_mode(const struct lu_env *env,
800 struct md_object *mo,
803 if (mo->mo_dir_ops->mdo_lock_mode == NULL)
805 return mo->mo_dir_ops->mdo_lock_mode(env, mo, lm);
808 static inline int mdo_create(const struct lu_env *env,
810 const struct lu_name *lchild_name,
812 struct md_op_spec *spc,
815 LASSERT(c->mo_dir_ops->mdo_create);
816 return c->mo_dir_ops->mdo_create(env, p, lchild_name, c, spc, at);
819 static inline int mdo_create_data(const struct lu_env *env,
822 const struct md_op_spec *spec,
825 LASSERT(c->mo_dir_ops->mdo_create_data);
826 return c->mo_dir_ops->mdo_create_data(env, p, c, spec, ma);
829 static inline int mdo_rename(const struct lu_env *env,
830 struct md_object *sp,
831 struct md_object *tp,
832 const struct lu_fid *lf,
833 const struct lu_name *lsname,
835 const struct lu_name *ltname,
838 LASSERT(tp->mo_dir_ops->mdo_rename);
839 return tp->mo_dir_ops->mdo_rename(env, sp, tp, lf, lsname, t, ltname,
843 static inline int mdo_is_subdir(const struct lu_env *env,
844 struct md_object *mo,
845 const struct lu_fid *fid,
848 LASSERT(mo->mo_dir_ops->mdo_is_subdir);
849 return mo->mo_dir_ops->mdo_is_subdir(env, mo, fid, sfid);
852 static inline int mdo_link(const struct lu_env *env,
855 const struct lu_name *lname,
858 LASSERT(s->mo_dir_ops->mdo_link);
859 return s->mo_dir_ops->mdo_link(env, p, s, lname, ma);
862 static inline int mdo_unlink(const struct lu_env *env,
865 const struct lu_name *lname,
868 LASSERT(c->mo_dir_ops->mdo_unlink);
869 return c->mo_dir_ops->mdo_unlink(env, p, c, lname, ma);
872 static inline int mdo_name_insert(const struct lu_env *env,
874 const struct lu_name *lname,
875 const struct lu_fid *f,
876 const struct md_attr *ma)
878 LASSERT(p->mo_dir_ops->mdo_name_insert);
879 return p->mo_dir_ops->mdo_name_insert(env, p, lname, f, ma);
882 static inline int mdo_name_remove(const struct lu_env *env,
884 const struct lu_name *lname,
885 const struct md_attr *ma)
887 LASSERT(p->mo_dir_ops->mdo_name_remove);
888 return p->mo_dir_ops->mdo_name_remove(env, p, lname, ma);
891 static inline int mdo_rename_tgt(const struct lu_env *env,
894 const struct lu_fid *lf,
895 const struct lu_name *lname,
899 LASSERT(t->mo_dir_ops->mdo_rename_tgt);
900 return t->mo_dir_ops->mdo_rename_tgt(env, p, t, lf, lname, ma);
902 LASSERT(p->mo_dir_ops->mdo_rename_tgt);
903 return p->mo_dir_ops->mdo_rename_tgt(env, p, t, lf, lname, ma);
909 * Structure to hold object information. This is used to create object
910 * \pre llod_dir exist
912 struct lu_local_obj_desc {
913 const char *llod_dir;
914 const char *llod_name;
917 const struct dt_index_features *llod_feat;
918 cfs_list_t llod_linkage;
921 struct md_object *llo_store_resolve(const struct lu_env *env,
922 struct md_device *md,
923 struct dt_device *dt,
927 struct md_object *llo_store_open(const struct lu_env *env,
928 struct md_device *md,
929 struct dt_device *dt,
934 struct md_object *llo_store_create_index(const struct lu_env *env,
935 struct md_device *md,
936 struct dt_device *dt,
939 const struct lu_fid *fid,
940 const struct dt_index_features *feat);
942 struct md_object *llo_store_create(const struct lu_env *env,
943 struct md_device *md,
944 struct dt_device *dt,
947 const struct lu_fid *fid);
949 void llo_local_obj_register(struct lu_local_obj_desc *);
950 void llo_local_obj_unregister(struct lu_local_obj_desc *);
952 int llo_local_objects_setup(const struct lu_env *env,
953 struct md_device * md,
954 struct dt_device * dt);
957 #endif /* _LINUX_MD_OBJECT_H */