struct lu_fid mti_fid2; /* used for be & cpu converting */
struct lu_attr mti_la;
struct lu_attr mti_la_for_fix;
+ struct lu_attr mti_pattr;
+ struct lu_attr mti_cattr;
struct md_attr mti_ma;
struct obd_info mti_oi;
/* mti_orph_ent and mti_orph_key must be conjoint,
* then mti_orph_ent::lde_name will be mti_orph_key. */
struct lu_dirent mti_orph_ent;
- struct lu_attr mti_pattr;
- struct lu_attr mti_cattr;
char mti_orph_key[NAME_MAX + 1];
struct obd_trans_info mti_oti;
struct lu_buf mti_buf;
struct mdd_object *mdd_obj,
struct md_attr *ma);
int mdd_object_create_internal(const struct lu_env *env, struct mdd_object *p,
- struct mdd_object *c, struct md_attr *ma,
- struct thandle *handle,
- const struct md_op_spec *spec);
+ struct mdd_object *c, struct lu_attr *attr,
+ struct thandle *handle,
+ const struct md_op_spec *spec);
int mdd_attr_check_set_internal_locked(const struct lu_env *env,
struct mdd_object *obj,
struct lu_attr *attr,
int mdd_may_create(const struct lu_env *env, struct mdd_object *pobj,
struct mdd_object *cobj, int check_perm, int check_nlink);
int mdd_may_unlink(const struct lu_env *env, struct mdd_object *pobj,
- const struct md_attr *ma);
+ const struct lu_attr *attr);
int mdd_may_delete(const struct lu_env *env, struct mdd_object *pobj,
- struct mdd_object *cobj, struct md_attr *ma,
- int check_perm, int check_empty);
+ struct mdd_object *cobj, struct lu_attr *cattr,
+ struct lu_attr *src_attr, int check_perm, int check_empty);
int mdd_unlink_sanity_check(const struct lu_env *env, struct mdd_object *pobj,
- struct mdd_object *cobj, struct md_attr *ma);
+ struct mdd_object *cobj, struct lu_attr *cattr);
int mdd_finish_unlink(const struct lu_env *env, struct mdd_object *obj,
struct md_attr *ma, struct thandle *th);
int mdd_object_initialize(const struct lu_env *env, const struct lu_fid *pfid,
- const struct lu_name *lname, struct mdd_object *child,
- struct md_attr *ma, struct thandle *handle,
- const struct md_op_spec *spec);
+ const struct lu_name *lname, struct mdd_object *child,
+ struct lu_attr *attr, struct thandle *handle,
+ const struct md_op_spec *spec);
int mdd_link_sanity_check(const struct lu_env *env, struct mdd_object *tgt_obj,
const struct lu_name *lname, struct mdd_object *src_obj);
int mdd_is_root(struct mdd_device *mdd, const struct lu_fid *fid);
int mdd_changelog(const struct lu_env *env, enum changelog_rec_type type,
int flags, struct md_object *obj);
int mdd_declare_object_create_internal(const struct lu_env *env,
- struct mdd_object *p,
- struct mdd_object *c,
- struct md_attr *ma,
- struct thandle *handle,
- const struct md_op_spec *spec);
+ struct mdd_object *p,
+ struct mdd_object *c,
+ struct lu_attr *attr,
+ struct thandle *handle,
+ const struct md_op_spec *spec);
/* mdd_quota.c*/
#ifdef HAVE_QUOTA_SUPPORT
int mdd_quota_notify(const struct lu_env *env, struct md_device *m);