*/
int (*dt_root_get)(struct lu_context *ctx,
struct dt_device *dev, struct lu_fid *f);
- /*
- * Create new object on this device.
- *
- * postcondition: ergo(result == 0, lu_object_exists(ctxt, &dt->do_lu));
- */
- int (*dt_object_create)(struct lu_context *ctxt, struct dt_object *dt,
- struct thandle *th);
- /*
- * Destroy existing object.
- *
- * precondition: lu_object_exists(ctxt, &dt->do_lu);
- */
- int (*dt_object_destroy)(struct lu_context *ctxt,
- struct dt_object *dt, struct thandle *th);
};
/*
int (*do_xattr_set)(struct lu_context *ctxt, struct dt_object *dt,
void *buf, int buf_len, const char *name,
struct thandle *handle);
+ /*
+ * Create new object on this device.
+ *
+ * postcondition: ergo(result == 0, lu_object_exists(ctxt, &dt->do_lu));
+ */
+ int (*do_object_create)(struct lu_context *ctxt, struct dt_object *dt,
+ struct thandle *th);
+ /*
+ * Destroy existing object.
+ *
+ * precondition: lu_object_exists(ctxt, &dt->do_lu);
+ */
+ int (*do_object_destroy)(struct lu_context *ctxt,
+ struct dt_object *dt, struct thandle *th);
};
/*
int (*moo_xattr_set)(struct lu_context *ctxt, struct md_object *obj,
void *buf, int buf_len, const char *name);
+ /* part of cross-ref operation */
+ int (*moo_object_create)(struct lu_context *, struct md_object *);
+ int (*moo_object_destroy)(struct lu_context *, struct md_object *);
+
};
/*
int (*mdo_statfs)(struct lu_context *ctx,
struct md_device *m, struct kstatfs *sfs);
- /* part of cross-ref operation */
- int (*mdo_object_create)(struct lu_context *, struct md_object *);
- int (*mdo_object_destroy)(struct lu_context *, struct md_object *);
-
};
struct md_device {