struct dt_device;
struct dt_object;
struct dt_index_features;
+struct dt_quota_ctxt;
struct dt_device_param {
unsigned ddp_max_name_len;
DTO_IDNEX_UPDATE,
DTO_OBJECT_CREATE,
DTO_OBJECT_DELETE,
- DTO_ATTR_SET,
+ DTO_ATTR_SET_BASE,
DTO_XATTR_SET,
DTO_LOG_REC, /**< XXX temporary: dt layer knows nothing about llog. */
DTO_WRITE_BASE,
DTO_WRITE_BLOCK,
+ DTO_ATTR_SET_CHOWN,
DTO_NR
};
struct dt_device *dev,
int mode, unsigned long timeout,
__u32 alg, struct lustre_capa_key *keys);
+ /**
+ * Initialize quota context.
+ */
+ void (*dt_init_quota_ctxt)(const struct lu_env *env,
+ struct dt_device *dev,
+ struct dt_quota_ctxt *ctxt, void *data);
/**
* get transaction credits for given \a op.
*/
ssize_t (*dbo_write)(const struct lu_env *env, struct dt_object *dt,
const struct lu_buf *buf, loff_t *pos,
- struct thandle *handle, struct lustre_capa *capa);
+ struct thandle *handle, struct lustre_capa *capa,
+ int ignore_quota);
};
/**
*/
int (*dio_insert)(const struct lu_env *env, struct dt_object *dt,
const struct dt_rec *rec, const struct dt_key *key,
- struct thandle *handle, struct lustre_capa *capa);
+ struct thandle *handle, struct lustre_capa *capa,
+ int ignore_quota);
/**
* precondition: dt_object_exists(dt);
*/