1 /*2 * The Super block basically lists the main trees of the FS3 * It currently lacks any block count etc etc4 */5 structBtrfs_super_block {6 U8 Csum[btrfs_csum_size];7 /*The first 4 fields must match struct Btrfs_header*/8U8 Fsid[btrfs_fsid_size];/*FS specific UUID*/9__le64 Bytenr;/*This block number*/Ten __le64 flags; One A /*allowed to is different from the Btrfs_header from here own down*/ - __le64 Magic; - __le64 generation; the __le64 Root; - __le64 chunk_root; - __le64 log_root; - + /*This would help find the new super based on the log root*/ - __le64 Log_root_transid; + __le64 total_bytes; A __le64 bytes_used; at __le64 Root_dir_objectid; - __le64 num_devices; - __le32 sectorsize; - __le32 nodesize; - __le32 leafsize; - __le32 stripesize; in __le32 sys_chunk_array_size; - __le64 chunk_root_generation; to __le64 compat_flags; + __le64 compat_ro_flags; - __le64 incompat_flags; the __le16 Csum_type; * U8 Root_level; $ U8 Chunk_root_level;Panax Notoginseng U8 Log_root_level; - structBtrfs_dev_item Dev_item; the + CharLabel[btrfs_label_size]; A the __le64 cache_generation; + __le64 uuid_tree_generation; - $ /*Future Expansion*/ $__le64 reserved[ -]; - U8 Sys_chunk_array[btrfs_system_chunk_array_size]; - structbtrfs_root_backup Super_roots[btrfs_num_backup_roots]; the} __attribute__ ((__packed__));
BTRFS Super Block