RETURN(rc);
}
-/*
- * No permission check is needed.
- */
-static int mdd_init_capa_ctxt(const struct lu_env *env, struct md_device *m,
- int mode, unsigned long timeout, __u32 alg,
- struct lustre_capa_key *keys)
-{
- struct mdd_device *mdd = lu2mdd_dev(&m->md_lu_dev);
- int rc;
- ENTRY;
-
- /* need barrier for mds_capa_keys access. */
-
- rc = mdd_child_ops(mdd)->dt_init_capa_ctxt(env, mdd->mdd_child, mode,
- timeout, alg, keys);
- RETURN(rc);
-}
-
static int mdd_maxeasize_get(const struct lu_env *env, struct md_device *m,
int *easize)
{
RETURN(0);
}
-static int mdd_update_capa_key(const struct lu_env *env,
- struct md_device *m,
- struct lustre_capa_key *key)
-{
- /* we do not support capabilities ... */
- return -EINVAL;
-}
-
static int mdd_llog_ctxt_get(const struct lu_env *env, struct md_device *m,
int idx, void **h)
{
static const struct md_device_operations mdd_ops = {
.mdo_statfs = mdd_statfs,
.mdo_root_get = mdd_root_get,
- .mdo_init_capa_ctxt = mdd_init_capa_ctxt,
- .mdo_update_capa_key= mdd_update_capa_key,
.mdo_llog_ctxt_get = mdd_llog_ctxt_get,
.mdo_iocontrol = mdd_iocontrol,
.mdo_maxeasize_get = mdd_maxeasize_get,