From: tappro Date: Tue, 23 May 2006 23:53:46 +0000 (+0000) Subject: add mdo_create() operation X-Git-Tag: v1_8_0_110~486^2~1780 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=413da89de88aa66cf250e37af91cab74b189b79a;p=fs%2Flustre-release.git add mdo_create() operation --- diff --git a/lustre/include/md_object.h b/lustre/include/md_object.h index 790ce43..3928fff 100644 --- a/lustre/include/md_object.h +++ b/lustre/include/md_object.h @@ -81,6 +81,10 @@ struct md_dir_operations { struct md_object *, const char *, struct md_object *); + int (*mdo_create)(const struct lu_context *, struct md_object *, + const char *, struct md_object *, + struct lu_attr *); + int (*mdo_rename)(const struct lu_context *ctxt, struct md_object *spobj, struct md_object *tpobj, struct md_object *sobj, @@ -174,6 +178,11 @@ static inline int mo_attr_get(const struct lu_context *cx, struct md_object *m, return m->mo_ops->moo_attr_get(cx, m, at); } +static inline int mo_open(const struct lu_context *cx, struct md_object *m) +{ + return m->mo_ops->moo_open(cx, m); +} + static inline int mo_object_create(const struct lu_context *cx, struct md_object *m, struct lu_attr *at) { @@ -193,6 +202,13 @@ static inline int mdo_mkdir(const struct lu_context *cx, struct lu_attr *at, return p->mo_dir_ops->mdo_mkdir(cx, at, p, name, c); } +static inline int mdo_create(const struct lu_context *cx, + struct md_object *p, const char *name, + struct md_object *c, struct lu_attr *at) +{ + return c->mo_dir_ops->mdo_create(cx, p, name, c, at); +} + static inline int mdo_name_insert(const struct lu_context *cx, struct md_object *p, const char *name, const struct lu_fid *f,