mirror of
https://github.com/schoebel/mars
synced 2025-02-17 20:47:16 +00:00
infra: add checksumming fields to mref
This commit is contained in:
parent
dd8c0df8e2
commit
eb3786d6e1
2
mars.h
2
mars.h
@ -107,8 +107,10 @@ extern void mars_log_trace(struct mref_object *mref);
|
||||
int ref_may_write; \
|
||||
int ref_prio; \
|
||||
int ref_timeout; \
|
||||
int ref_cs_mode; /* 0 = off, 1 = checksum + data, 2 = checksum only */ \
|
||||
/* maintained by the ref implementation, readable for callers */ \
|
||||
loff_t ref_total_size; /* just for info, need not be implemented */ \
|
||||
unsigned char ref_checksum[16]; \
|
||||
int ref_flags; \
|
||||
int ref_rw; \
|
||||
int ref_id; /* not mandatory; may be used for identification */ \
|
||||
|
@ -75,8 +75,10 @@ const struct meta mars_mref_meta[] = {
|
||||
META_INI(ref_len, struct mref_object, FIELD_INT),
|
||||
META_INI(ref_may_write, struct mref_object, FIELD_INT),
|
||||
META_INI(ref_prio, struct mref_object, FIELD_INT),
|
||||
META_INI(ref_cs_mode, struct mref_object, FIELD_INT),
|
||||
META_INI(ref_timeout, struct mref_object, FIELD_INT),
|
||||
META_INI(ref_total_size, struct mref_object, FIELD_INT),
|
||||
META_INI(ref_checksum, struct mref_object, FIELD_INT),
|
||||
META_INI(ref_flags, struct mref_object, FIELD_INT),
|
||||
META_INI(ref_rw, struct mref_object, FIELD_INT),
|
||||
META_INI(ref_id, struct mref_object, FIELD_INT),
|
||||
|
Loading…
Reference in New Issue
Block a user