enum bch_member_error_type { #define x(t, n) BCH_MEMBER_ERROR_##t = n,
BCH_MEMBER_ERROR_TYPES() #undef x
BCH_MEMBER_ERROR_NR
};
struct bch_member {
__uuid_t uuid;
__le64 nbuckets; /* device size */
__le16 first_bucket; /* index of first bucket used */
__le16 bucket_size; /* sectors */
__u8 btree_bitmap_shift;
__u8 pad[3];
__le64 last_mount; /* time_t */
__le64 flags;
__le32 iops[4];
__le64 errors[BCH_MEMBER_ERROR_NR];
__le64 errors_at_reset[BCH_MEMBER_ERROR_NR];
__le64 errors_reset_time;
__le64 seq;
__le64 btree_allocated_bitmap; /* * On recovery from a clean shutdown we don't normally read the journal, * but we still want to resume writing from where we left off so we * don't overwrite more than is necessary, for list journal debugging:
*/
__le32 last_journal_bucket;
__le32 last_journal_bucket_offset;
};
/* * btree_allocated_bitmap can represent sector addresses of a u64: it itself has * 64 elements, so 64 - ilog2(64)
*/ #define BCH_MI_BTREE_BITMAP_SHIFT_MAX 58
/* * This limit comes from the bucket_gens array - it's a single allocation, and * kernel allocation are limited to INT_MAX
*/ #define BCH_MEMBER_NBUCKETS_MAX (INT_MAX - 64)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.