码迷,mamicode.com
首页 > 其他好文 > 详细

btrfs super block

时间:2015-06-11 16:34:15      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

 1 /*
 2  * the super block basically lists the main trees of the FS
 3  * it currently lacks any block count etc etc
 4  */
 5 struct btrfs_super_block {
 6     u8 csum[BTRFS_CSUM_SIZE];
 7     /* the first 4 fields must match struct btrfs_header */
 8     u8 fsid[BTRFS_FSID_SIZE];    /* FS specific uuid */
 9     __le64 bytenr; /* this block number */
10     __le64 flags;
11 
12     /* allowed to be different from the btrfs_header from here own down */
13     __le64 magic;
14     __le64 generation;
15     __le64 root;
16     __le64 chunk_root;
17     __le64 log_root;
18 
19     /* this will help find the new super based on the log root */
20     __le64 log_root_transid;
21     __le64 total_bytes;
22     __le64 bytes_used;
23     __le64 root_dir_objectid;
24     __le64 num_devices;
25     __le32 sectorsize;
26     __le32 nodesize;
27     __le32 leafsize;
28     __le32 stripesize;
29     __le32 sys_chunk_array_size;
30     __le64 chunk_root_generation;
31     __le64 compat_flags;
32     __le64 compat_ro_flags;
33     __le64 incompat_flags;
34     __le16 csum_type;
35     u8 root_level;
36     u8 chunk_root_level;
37     u8 log_root_level;
38     struct btrfs_dev_item dev_item;
39 
40     char label[BTRFS_LABEL_SIZE];
41 
42     __le64 cache_generation;
43     __le64 uuid_tree_generation;
44 
45     /* future expansion */
46     __le64 reserved[30];
47     u8 sys_chunk_array[BTRFS_SYSTEM_CHUNK_ARRAY_SIZE];
48     struct btrfs_root_backup super_roots[BTRFS_NUM_BACKUP_ROOTS];
49 } __attribute__ ((__packed__));

 

btrfs super block

标签:

原文地址:http://www.cnblogs.com/shanon/p/4569057.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!