Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/kinit/fstype/btrfs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1122 - (show annotations) (download)
Wed Aug 18 21:11:40 2010 UTC (13 years, 8 months ago) by niro
File MIME type: text/plain
File size: 1223 byte(s)
-updated to klibc-1.5.19
1 #ifndef __BTRFS_H
2 #define __BTRFS_H
3
4 # define BTRFS_MAGIC "_BHRfS_M"
5 # define BTRFS_MAGIC_L 8
6
7 /*
8 * Structure of the super block
9 */
10 struct btrfs_super_block {
11 uint8_t csum[32];
12 uint8_t fsid[16];
13 uint64_t bytenr;
14 uint64_t flags;
15 uint8_t magic[8];
16 uint64_t generation;
17 uint64_t root;
18 uint64_t chunk_root;
19 uint64_t log_root;
20 uint64_t log_root_transid;
21 uint64_t total_bytes;
22 uint64_t bytes_used;
23 uint64_t root_dir_objectid;
24 uint64_t num_devices;
25 uint32_t sectorsize;
26 uint32_t nodesize;
27 uint32_t leafsize;
28 uint32_t stripesize;
29 uint32_t sys_chunk_array_size;
30 uint64_t chunk_root_generation;
31 uint64_t compat_flags;
32 uint64_t compat_ro_flags;
33 uint64_t incompat_flags;
34 uint16_t csum_type;
35 uint8_t root_level;
36 uint8_t chunk_root_level;
37 uint8_t log_root_level;
38 struct btrfs_dev_item {
39 uint64_t devid;
40 uint64_t total_bytes;
41 uint64_t bytes_used;
42 uint32_t io_align;
43 uint32_t io_width;
44 uint32_t sector_size;
45 uint64_t type;
46 uint64_t generation;
47 uint64_t start_offset;
48 uint32_t dev_group;
49 uint8_t seek_speed;
50 uint8_t bandwidth;
51 uint8_t uuid[16];
52 uint8_t fsid[16];
53 } __attribute__ ((__packed__)) dev_item;
54 uint8_t label[256];
55 } __attribute__ ((__packed__));
56
57 #endif /* __BTRFS_H */