objects.
- ACCT_USER_OID/ACCT_GROUP_OID are used for accessing space accounting
information for respectively users and groups.
-- MDT_LAST_RECV_OID/OFD_LAST_RECV_OID is the last_rcvd file for respectively
+- LAST_RECV_OID is the last_rcvd file for respectively
the MDT and OST.
iv. Object Operations
struct niobuf_local *, int);
int (*dbo_fiemap_get)(const struct lu_env *, struct dt_object *,
struct ll_user_fiemap *);
-int (*do_declare_punch)(const struct lu_env*, struct dt_object *, __u64,
+int (*dbo_declare_punch)(const struct lu_env*, struct dt_object *, __u64,
__u64,struct thandle *);
-int (*do_punch)(const struct lu_env *, struct dt_object *, __u64, __u64,
+int (*dbo_punch)(const struct lu_env *, struct dt_object *, __u64, __u64,
struct thandle *, struct lustre_capa *);
dbo_read
struct lquota_trans *, struct lquota_id_info *, int *);
void qsd_op_end(const struct lu_env *, struct qsd_instance *,
struct lquota_trans *);
-void qsd_adjust_quota(const struct lu_env *, struct qsd_instance *,
- union lquota_id *, int);
+void qsd_op_adjust(const struct lu_env *, struct qsd_instance *,
+ union lquota_id *, int);
qsd_init
The OSD module should first allocate a qsd instance via qsd_init.
each time a new operation is declared, qsd_op_end should be called only
once for the whole transaction.
-qsd_adjust_quota
+qsd_op_adjust
Trigger pre-acquire/release if necessary, it's only used for ldiskfs osd
so far. When unlink a file in ldiskfs, the quota accounting isn't
updated when the transaction stopped. Instead, it'll be updated on the
- final iput, so qsd_adjust_quota() will be called then (in
+ final iput, so qsd_op_adjust() will be called then (in
osd_object_delete()) to trigger quota release if necessary.
Appendix 1. A brief note on Lustre configuration.