Whamcloud - gitweb
LU-1304 mdd: changes related to acl
[fs/lustre-release.git] / lustre / mdd / mdd_internal.h
index 5a03b8c..09de0a1 100644 (file)
@@ -183,6 +183,8 @@ struct mdd_thread_info {
        /* 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;
@@ -515,6 +517,8 @@ int mdd_acl_chmod(const struct lu_env *env, struct mdd_object *o, __u32 mode,
                   struct thandle *handle);
 int __mdd_declare_acl_init(const struct lu_env *env, struct mdd_object *obj,
                            int is_dir, struct thandle *handle);
+int mdd_acl_set(const struct lu_env *env, struct mdd_object *obj,
+               const struct lu_buf *buf, int fl);
 int __mdd_acl_init(const struct lu_env *env, struct mdd_object *obj,
                    struct lu_buf *buf, __u32 *mode, struct thandle *handle);
 int __mdd_permission_internal(const struct lu_env *env, struct mdd_object *obj,