ReactOS  0.4.14-dev-41-g31d7680
btrfs.h
Go to the documentation of this file.
1 /* btrfs.h
2  * Generic btrfs header file. Thanks to whoever it was who wrote
3  * https://btrfs.wiki.kernel.org/index.php/On-disk_Format - you saved me a lot of time!
4  *
5  * I release this file, and this file only, into the public domain - do whatever
6  * you want with it. You don't have to, but I'd appreciate if you let me know if you
7  * use it anything cool - mark@harmstone.com. */
8 
9 #pragma once
10 
11 #include <stdint.h>
12 
13 static const uint64_t superblock_addrs[] = { 0x10000, 0x4000000, 0x4000000000, 0x4000000000000, 0 };
14 
15 #define BTRFS_MAGIC 0x4d5f53665248425f
16 #define MAX_LABEL_SIZE 0x100
17 #define SUBVOL_ROOT_INODE 0x100
18 
19 #define TYPE_INODE_ITEM 0x01
20 #define TYPE_INODE_REF 0x0C
21 #define TYPE_INODE_EXTREF 0x0D
22 #define TYPE_XATTR_ITEM 0x18
23 #define TYPE_ORPHAN_INODE 0x30
24 #define TYPE_DIR_ITEM 0x54
25 #define TYPE_DIR_INDEX 0x60
26 #define TYPE_EXTENT_DATA 0x6C
27 #define TYPE_EXTENT_CSUM 0x80
28 #define TYPE_ROOT_ITEM 0x84
29 #define TYPE_ROOT_BACKREF 0x90
30 #define TYPE_ROOT_REF 0x9C
31 #define TYPE_EXTENT_ITEM 0xA8
32 #define TYPE_METADATA_ITEM 0xA9
33 #define TYPE_TREE_BLOCK_REF 0xB0
34 #define TYPE_EXTENT_DATA_REF 0xB2
35 #define TYPE_EXTENT_REF_V0 0xB4
36 #define TYPE_SHARED_BLOCK_REF 0xB6
37 #define TYPE_SHARED_DATA_REF 0xB8
38 #define TYPE_BLOCK_GROUP_ITEM 0xC0
39 #define TYPE_FREE_SPACE_INFO 0xC6
40 #define TYPE_FREE_SPACE_EXTENT 0xC7
41 #define TYPE_FREE_SPACE_BITMAP 0xC8
42 #define TYPE_DEV_EXTENT 0xCC
43 #define TYPE_DEV_ITEM 0xD8
44 #define TYPE_CHUNK_ITEM 0xE4
45 #define TYPE_TEMP_ITEM 0xF8
46 #define TYPE_DEV_STATS 0xF9
47 #define TYPE_SUBVOL_UUID 0xFB
48 #define TYPE_SUBVOL_REC_UUID 0xFC
49 
50 #define BTRFS_ROOT_ROOT 1
51 #define BTRFS_ROOT_EXTENT 2
52 #define BTRFS_ROOT_CHUNK 3
53 #define BTRFS_ROOT_DEVTREE 4
54 #define BTRFS_ROOT_FSTREE 5
55 #define BTRFS_ROOT_CHECKSUM 7
56 #define BTRFS_ROOT_UUID 9
57 #define BTRFS_ROOT_FREE_SPACE 0xa
58 #define BTRFS_ROOT_DATA_RELOC 0xFFFFFFFFFFFFFFF7
59 
60 #define BTRFS_COMPRESSION_NONE 0
61 #define BTRFS_COMPRESSION_ZLIB 1
62 #define BTRFS_COMPRESSION_LZO 2
63 #define BTRFS_COMPRESSION_ZSTD 3
64 
65 #define BTRFS_ENCRYPTION_NONE 0
66 
67 #define BTRFS_ENCODING_NONE 0
68 
69 #define EXTENT_TYPE_INLINE 0
70 #define EXTENT_TYPE_REGULAR 1
71 #define EXTENT_TYPE_PREALLOC 2
72 
73 #define BLOCK_FLAG_DATA 0x001
74 #define BLOCK_FLAG_SYSTEM 0x002
75 #define BLOCK_FLAG_METADATA 0x004
76 #define BLOCK_FLAG_RAID0 0x008
77 #define BLOCK_FLAG_RAID1 0x010
78 #define BLOCK_FLAG_DUPLICATE 0x020
79 #define BLOCK_FLAG_RAID10 0x040
80 #define BLOCK_FLAG_RAID5 0x080
81 #define BLOCK_FLAG_RAID6 0x100
82 
83 #define FREE_SPACE_CACHE_ID 0xFFFFFFFFFFFFFFF5
84 #define EXTENT_CSUM_ID 0xFFFFFFFFFFFFFFF6
85 #define BALANCE_ITEM_ID 0xFFFFFFFFFFFFFFFC
86 
87 #define BTRFS_INODE_NODATASUM 0x001
88 #define BTRFS_INODE_NODATACOW 0x002
89 #define BTRFS_INODE_READONLY 0x004
90 #define BTRFS_INODE_NOCOMPRESS 0x008
91 #define BTRFS_INODE_PREALLOC 0x010
92 #define BTRFS_INODE_SYNC 0x020
93 #define BTRFS_INODE_IMMUTABLE 0x040
94 #define BTRFS_INODE_APPEND 0x080
95 #define BTRFS_INODE_NODUMP 0x100
96 #define BTRFS_INODE_NOATIME 0x200
97 #define BTRFS_INODE_DIRSYNC 0x400
98 #define BTRFS_INODE_COMPRESS 0x800
99 
100 #define BTRFS_SUBVOL_READONLY 0x1
101 
102 #define BTRFS_COMPAT_RO_FLAGS_FREE_SPACE_CACHE 0x1
103 #define BTRFS_COMPAT_RO_FLAGS_FREE_SPACE_CACHE_VALID 0x2
104 
105 #define BTRFS_INCOMPAT_FLAGS_MIXED_BACKREF 0x0001
106 #define BTRFS_INCOMPAT_FLAGS_DEFAULT_SUBVOL 0x0002
107 #define BTRFS_INCOMPAT_FLAGS_MIXED_GROUPS 0x0004
108 #define BTRFS_INCOMPAT_FLAGS_COMPRESS_LZO 0x0008
109 #define BTRFS_INCOMPAT_FLAGS_COMPRESS_ZSTD 0x0010
110 #define BTRFS_INCOMPAT_FLAGS_BIG_METADATA 0x0020
111 #define BTRFS_INCOMPAT_FLAGS_EXTENDED_IREF 0x0040
112 #define BTRFS_INCOMPAT_FLAGS_RAID56 0x0080
113 #define BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA 0x0100
114 #define BTRFS_INCOMPAT_FLAGS_NO_HOLES 0x0200
115 
116 #define BTRFS_SUPERBLOCK_FLAGS_SEEDING 0x100000000
117 
118 #define BTRFS_ORPHAN_INODE_OBJID 0xFFFFFFFFFFFFFFFB
119 
120 #pragma pack(push, 1)
121 
122 typedef struct {
124 } BTRFS_UUID;
125 
126 typedef struct {
130 } KEY;
131 
132 #define HEADER_FLAG_WRITTEN 0x000000000000001
133 #define HEADER_FLAG_SHARED_BACKREF 0x000000000000002
134 #define HEADER_FLAG_MIXED_BACKREF 0x100000000000000
135 
136 typedef struct {
146 } tree_header;
147 
148 typedef struct {
152 } leaf_node;
153 
154 typedef struct {
158 } internal_node;
159 
160 typedef struct {
175 } DEV_ITEM;
176 
177 #define SYS_CHUNK_ARRAY_SIZE 0x800
178 #define BTRFS_NUM_BACKUP_ROOTS 4
179 
180 typedef struct {
205 
206 typedef struct {
239  uint8_t sys_chunk_array[SYS_CHUNK_ARRAY_SIZE];
242 } superblock;
243 
244 #define BTRFS_TYPE_UNKNOWN 0
245 #define BTRFS_TYPE_FILE 1
246 #define BTRFS_TYPE_DIRECTORY 2
247 #define BTRFS_TYPE_CHARDEV 3
248 #define BTRFS_TYPE_BLOCKDEV 4
249 #define BTRFS_TYPE_FIFO 5
250 #define BTRFS_TYPE_SOCKET 6
251 #define BTRFS_TYPE_SYMLINK 7
252 #define BTRFS_TYPE_EA 8
253 
254 typedef struct {
260  char name[1];
261 } DIR_ITEM;
262 
263 typedef struct {
266 } BTRFS_TIME;
267 
268 typedef struct {
286 } INODE_ITEM;
287 
288 typedef struct {
314 } ROOT_ITEM;
315 
316 typedef struct {
326 } CHUNK_ITEM;
327 
328 typedef struct {
333 
334 typedef struct {
342 } EXTENT_DATA;
343 
344 typedef struct {
349 } EXTENT_DATA2;
350 
351 typedef struct {
354  char name[1];
355 } INODE_REF;
356 
357 typedef struct {
361  char name[1];
362 } INODE_EXTREF;
363 
364 #define EXTENT_ITEM_DATA 0x001
365 #define EXTENT_ITEM_TREE_BLOCK 0x002
366 #define EXTENT_ITEM_SHARED_BACKREFS 0x100
367 
368 typedef struct {
372 } EXTENT_ITEM;
373 
374 typedef struct {
377 } EXTENT_ITEM2;
378 
379 typedef struct {
382 
383 typedef struct {
388 
389 typedef struct {
392 
393 typedef struct {
399 
400 typedef struct {
405 
406 typedef struct {
411 } EXTENT_REF_V0;
412 
413 typedef struct {
416 
417 typedef struct {
421 
422 #define FREE_SPACE_EXTENT 1
423 #define FREE_SPACE_BITMAP 2
424 
425 typedef struct {
430 
431 typedef struct {
437 
438 typedef struct {
442  char name[1];
443 } ROOT_REF;
444 
445 typedef struct {
451 } DEV_EXTENT;
452 
453 #define BALANCE_FLAGS_DATA 0x1
454 #define BALANCE_FLAGS_SYSTEM 0x2
455 #define BALANCE_FLAGS_METADATA 0x4
456 
457 #define BALANCE_ARGS_FLAGS_PROFILES 0x001
458 #define BALANCE_ARGS_FLAGS_USAGE 0x002
459 #define BALANCE_ARGS_FLAGS_DEVID 0x004
460 #define BALANCE_ARGS_FLAGS_DRANGE 0x008
461 #define BALANCE_ARGS_FLAGS_VRANGE 0x010
462 #define BALANCE_ARGS_FLAGS_LIMIT 0x020
463 #define BALANCE_ARGS_FLAGS_LIMIT_RANGE 0x040
464 #define BALANCE_ARGS_FLAGS_STRIPES_RANGE 0x080
465 #define BALANCE_ARGS_FLAGS_CONVERT 0x100
466 #define BALANCE_ARGS_FLAGS_SOFT 0x200
467 #define BALANCE_ARGS_FLAGS_USAGE_RANGE 0x400
468 
469 typedef struct {
471 
472  union {
474  struct {
477  };
478  };
479 
487 
488  union {
490  struct {
493  };
494  };
495 
499 } BALANCE_ARGS;
500 
501 typedef struct {
507 } BALANCE_ITEM;
508 
509 #define BTRFS_FREE_SPACE_USING_BITMAPS 1
510 
511 typedef struct {
515 
516 #define BTRFS_DEV_STAT_WRITE_ERRORS 0
517 #define BTRFS_DEV_STAT_READ_ERRORS 1
518 #define BTRFS_DEV_STAT_FLUSH_ERRORS 2
519 #define BTRFS_DEV_STAT_CORRUPTION_ERRORS 3
520 #define BTRFS_DEV_STAT_GENERATION_ERRORS 4
521 
522 #define BTRFS_SEND_CMD_SUBVOL 1
523 #define BTRFS_SEND_CMD_SNAPSHOT 2
524 #define BTRFS_SEND_CMD_MKFILE 3
525 #define BTRFS_SEND_CMD_MKDIR 4
526 #define BTRFS_SEND_CMD_MKNOD 5
527 #define BTRFS_SEND_CMD_MKFIFO 6
528 #define BTRFS_SEND_CMD_MKSOCK 7
529 #define BTRFS_SEND_CMD_SYMLINK 8
530 #define BTRFS_SEND_CMD_RENAME 9
531 #define BTRFS_SEND_CMD_LINK 10
532 #define BTRFS_SEND_CMD_UNLINK 11
533 #define BTRFS_SEND_CMD_RMDIR 12
534 #define BTRFS_SEND_CMD_SET_XATTR 13
535 #define BTRFS_SEND_CMD_REMOVE_XATTR 14
536 #define BTRFS_SEND_CMD_WRITE 15
537 #define BTRFS_SEND_CMD_CLONE 16
538 #define BTRFS_SEND_CMD_TRUNCATE 17
539 #define BTRFS_SEND_CMD_CHMOD 18
540 #define BTRFS_SEND_CMD_CHOWN 19
541 #define BTRFS_SEND_CMD_UTIMES 20
542 #define BTRFS_SEND_CMD_END 21
543 #define BTRFS_SEND_CMD_UPDATE_EXTENT 22
544 
545 #define BTRFS_SEND_TLV_UUID 1
546 #define BTRFS_SEND_TLV_TRANSID 2
547 #define BTRFS_SEND_TLV_INODE 3
548 #define BTRFS_SEND_TLV_SIZE 4
549 #define BTRFS_SEND_TLV_MODE 5
550 #define BTRFS_SEND_TLV_UID 6
551 #define BTRFS_SEND_TLV_GID 7
552 #define BTRFS_SEND_TLV_RDEV 8
553 #define BTRFS_SEND_TLV_CTIME 9
554 #define BTRFS_SEND_TLV_MTIME 10
555 #define BTRFS_SEND_TLV_ATIME 11
556 #define BTRFS_SEND_TLV_OTIME 12
557 #define BTRFS_SEND_TLV_XATTR_NAME 13
558 #define BTRFS_SEND_TLV_XATTR_DATA 14
559 #define BTRFS_SEND_TLV_PATH 15
560 #define BTRFS_SEND_TLV_PATH_TO 16
561 #define BTRFS_SEND_TLV_PATH_LINK 17
562 #define BTRFS_SEND_TLV_OFFSET 18
563 #define BTRFS_SEND_TLV_DATA 19
564 #define BTRFS_SEND_TLV_CLONE_UUID 20
565 #define BTRFS_SEND_TLV_CLONE_CTRANSID 21
566 #define BTRFS_SEND_TLV_CLONE_PATH 22
567 #define BTRFS_SEND_TLV_CLONE_OFFSET 23
568 #define BTRFS_SEND_TLV_CLONE_LENGTH 24
569 
570 #define BTRFS_SEND_MAGIC "btrfs-stream"
571 
572 typedef struct {
576 
577 typedef struct {
582 
583 typedef struct {
587 
588 #pragma pack(pop)
uint64_t chunk_tree_generation
Definition: btrfs.h:184
uint64_t generation
Definition: btrfs.h:335
uint64_t generation
Definition: btrfs.h:157
uint64_t fs_tree_addr
Definition: btrfs.h:187
uint64_t csum_root_addr
Definition: btrfs.h:191
uint64_t obj_id
Definition: btrfs.h:127
uint32_t version
Definition: btrfs.h:574
uint8_t type
Definition: btrfs.h:340
uint32_t limit_start
Definition: btrfs.h:491
static long backup()
Definition: maze.c:403
uint8_t log_root_level
Definition: btrfs.h:233
uint64_t root
Definition: btrfs.h:407
uint8_t obj_type
Definition: btrfs.h:128
uint8_t fs_root_level
Definition: btrfs.h:200
uint64_t type
Definition: btrfs.h:167
uint16_t sub_stripes
Definition: btrfs.h:325
uint16_t n
Definition: btrfs.h:360
uint64_t bytes_used
Definition: btrfs.h:218
Definition: btrfs.h:425
BTRFS_TIME otime
Definition: btrfs.h:285
uint32_t csum
Definition: btrfs.h:580
uint64_t convert
Definition: btrfs.h:485
uint32_t stripes_start
Definition: btrfs.h:496
uint8_t dev_root_level
Definition: btrfs.h:201
uint64_t root_tree_addr
Definition: btrfs.h:213
uint32_t count
Definition: btrfs.h:410
uint64_t bytes_used
Definition: btrfs.h:294
uint64_t dev_id
Definition: btrfs.h:329
uint64_t magic
Definition: btrfs.h:211
uint8_t root_level
Definition: btrfs.h:231
uint64_t offset
Definition: btrfs.h:396
uint64_t flags
Definition: btrfs.h:403
BTRFS_TIME otime
Definition: btrfs.h:310
uint64_t decoded_size
Definition: btrfs.h:336
uint64_t chunk_tree_addr
Definition: btrfs.h:183
uint64_t objid
Definition: btrfs.h:395
uint64_t flags
Definition: btrfs.h:140
uint64_t flags
Definition: btrfs.h:502
uint64_t length
Definition: btrfs.h:449
uint64_t otransid
Definition: btrfs.h:306
u32_t magic(void)
BTRFS_UUID parent_uuid
Definition: btrfs.h:303
uint64_t extent_tree_generation
Definition: btrfs.h:186
uint32_t count
Definition: btrfs.h:512
uint64_t root_tree_generation
Definition: btrfs.h:182
uint64_t objid
Definition: btrfs.h:409
uint64_t stripe_length
Definition: btrfs.h:319
uint64_t block_number
Definition: btrfs.h:292
uint32_t refcount
Definition: btrfs.h:380
uint32_t limit_end
Definition: btrfs.h:492
uint64_t uuid_tree_generation
Definition: btrfs.h:237
uint64_t block_group
Definition: btrfs.h:273
unsigned short int uint16_t
Definition: acefiex.h:54
uint64_t dev_root_addr
Definition: btrfs.h:189
uint16_t n
Definition: btrfs.h:441
uint64_t compat_ro_flags
Definition: btrfs.h:228
uint64_t profiles
Definition: btrfs.h:470
uint16_t csum_type
Definition: btrfs.h:230
BALANCE_ARGS data
Definition: btrfs.h:503
uint64_t used
Definition: btrfs.h:401
BTRFS_TIME st_ctime
Definition: btrfs.h:283
uint8_t encryption
Definition: btrfs.h:338
#define SYS_CHUNK_ARRAY_SIZE
Definition: btrfs.h:177
uint64_t offset
Definition: btrfs.h:129
BTRFS_TIME stime
Definition: btrfs.h:311
uint64_t chunk_tree_addr
Definition: btrfs.h:214
#define BTRFS_NUM_BACKUP_ROOTS
Definition: btrfs.h:178
uint32_t optimal_io_align
Definition: btrfs.h:164
uint64_t size
Definition: btrfs.h:427
BTRFS_UUID fs_uuid
Definition: btrfs.h:174
uint64_t generation2
Definition: btrfs.h:301
uint64_t dir
Definition: btrfs.h:439
uint64_t flags
Definition: btrfs.h:296
uint32_t dev_group
Definition: btrfs.h:170
uint64_t offset
Definition: btrfs.h:330
uint64_t generation
Definition: btrfs.h:433
uint8_t level
Definition: btrfs.h:386
uint64_t size
Definition: btrfs.h:317
uint64_t bytes_used
Definition: btrfs.h:194
uint8_t type
Definition: btrfs.h:428
uint64_t address
Definition: btrfs.h:139
uint64_t devid
Definition: btrfs.h:480
uint32_t st_gid
Definition: btrfs.h:276
uint16_t m
Definition: btrfs.h:257
uint8_t seek_speed
Definition: btrfs.h:171
uint32_t stripe_size
Definition: btrfs.h:224
uint64_t refcount
Definition: btrfs.h:369
EXTENT_ITEM extent_item
Definition: btrfs.h:384
uint64_t address
Definition: btrfs.h:345
uint64_t generation
Definition: btrfs.h:290
uint64_t vrange_end
Definition: btrfs.h:484
uint64_t sequence
Definition: btrfs.h:280
uint64_t stransid
Definition: btrfs.h:307
uint64_t num_devices
Definition: btrfs.h:220
uint32_t st_nlink
Definition: btrfs.h:274
uint64_t index
Definition: btrfs.h:440
uint64_t index
Definition: btrfs.h:359
uint64_t dev_root_generation
Definition: btrfs.h:190
r reserved
Definition: btrfs.c:2893
uint8_t drop_level
Definition: btrfs.h:299
uint64_t generation
Definition: btrfs.h:142
BTRFS_UUID received_uuid
Definition: btrfs.h:304
uint32_t num_references
Definition: btrfs.h:297
KEY key
Definition: btrfs.h:255
uint32_t count
Definition: btrfs.h:397
uint32_t offset
Definition: btrfs.h:150
uint64_t extent_tree_addr
Definition: btrfs.h:185
DEV_ITEM dev_item
Definition: btrfs.h:234
uint64_t size
Definition: btrfs.h:346
uint8_t root_level
Definition: btrfs.h:197
uint8_t type
Definition: btrfs.h:259
uint32_t size
Definition: btrfs.h:151
uint64_t usage
Definition: btrfs.h:473
uint16_t n
Definition: btrfs.h:353
uint64_t root
Definition: btrfs.h:394
uint32_t opt_io_alignment
Definition: btrfs.h:321
uint64_t offset
Definition: btrfs.h:390
BTRFS_TIME st_mtime
Definition: btrfs.h:284
uint64_t log_tree_addr
Definition: btrfs.h:215
uint64_t sb_phys_addr
Definition: btrfs.h:209
BTRFS_UUID device_uuid
Definition: btrfs.h:173
uint64_t flags
Definition: btrfs.h:210
uint64_t ctransid
Definition: btrfs.h:305
BTRFS_UUID chunk_tree_uuid
Definition: btrfs.h:141
uint64_t num_bytes
Definition: btrfs.h:162
uint16_t encoding
Definition: btrfs.h:339
uint64_t st_size
Definition: btrfs.h:271
uint8_t reserved2[12]
Definition: fsck.fat.h:58
uint64_t objid
Definition: btrfs.h:291
uint8_t csum_root_level
Definition: btrfs.h:202
uint32_t stripes_end
Definition: btrfs.h:497
uint64_t st_rdev
Definition: btrfs.h:278
uint64_t root_dir_objectid
Definition: btrfs.h:219
uint64_t offset
Definition: btrfs.h:426
BTRFS_UUID uuid
Definition: btrfs.h:302
KEY firstitem
Definition: btrfs.h:375
uint8_t level
Definition: btrfs.h:145
uint64_t objid
Definition: btrfs.h:447
uint8_t root_level
Definition: btrfs.h:300
uint64_t drange_end
Definition: btrfs.h:482
BTRFS_UUID dev_uuid
Definition: btrfs.h:331
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
uint64_t generation
Definition: btrfs.h:212
uint32_t length
Definition: btrfs.h:578
BTRFS_TIME st_atime
Definition: btrfs.h:282
uint8_t chunk_root_level
Definition: btrfs.h:198
uint64_t offset
Definition: btrfs.h:414
uint32_t count
Definition: btrfs.h:419
uint32_t opt_io_width
Definition: btrfs.h:322
uint32_t sector_size
Definition: btrfs.h:323
uint64_t dev_id
Definition: btrfs.h:161
uint8_t level
Definition: btrfs.h:376
uint64_t gen
Definition: btrfs.h:408
uint16_t cmd
Definition: btrfs.h:579
uint64_t cache_generation
Definition: btrfs.h:236
uint64_t flags
Definition: btrfs.h:486
uint32_t optimal_io_width
Definition: btrfs.h:165
uint32_t n
Definition: btrfs.h:225
static cab_ULONG checksum(const cab_UBYTE *data, cab_UWORD bytes, cab_ULONG csum)
Definition: fdi.c:353
KEY drop_progress
Definition: btrfs.h:298
uint64_t generation
Definition: btrfs.h:269
BYTE uint8_t
Definition: msvideo1.c:66
uint8_t label[11]
Definition: fsck.fat.h:65
uint64_t num_bytes
Definition: btrfs.h:348
uint64_t dir
Definition: btrfs.h:358
uint64_t st_blocks
Definition: btrfs.h:272
uint64_t flags
Definition: btrfs.h:279
uint64_t generation
Definition: btrfs.h:370
uint64_t csum_root_generation
Definition: btrfs.h:192
uint8_t chunk_root_level
Definition: btrfs.h:232
uint64_t root_tree_addr
Definition: btrfs.h:181
uint64_t root_id
Definition: btrfs.h:318
uint32_t usage_start
Definition: btrfs.h:475
uint64_t vrange_start
Definition: btrfs.h:483
uint64_t byte_limit
Definition: btrfs.h:293
uint64_t limit
Definition: btrfs.h:489
uint8_t bandwidth
Definition: btrfs.h:172
Definition: btrfs.h:126
BALANCE_ARGS metadata
Definition: btrfs.h:504
INODE_ITEM inode
Definition: btrfs.h:289
#define MAX_LABEL_SIZE
Definition: btrfs.h:16
UINT64 uint64_t
Definition: types.h:77
BTRFS_UUID fs_uuid
Definition: btrfs.h:138
#define KEY
Definition: profile.c:30
uint64_t seconds
Definition: btrfs.h:264
uint64_t total_bytes
Definition: btrfs.h:217
KEY key
Definition: btrfs.h:149
uint64_t index
Definition: btrfs.h:352
BTRFS_UUID uuid
Definition: btrfs.h:208
uint64_t transid
Definition: btrfs.h:270
uint32_t node_size
Definition: btrfs.h:222
uint64_t chunk_tree
Definition: btrfs.h:402
BTRFS_TIME ctime
Definition: btrfs.h:309
uint32_t nanoseconds
Definition: btrfs.h:265
uint64_t total_bytes
Definition: btrfs.h:193
uint32_t flags
Definition: btrfs.h:513
UINT32 uint32_t
Definition: types.h:75
uint64_t last_snapshot_generation
Definition: btrfs.h:295
uint64_t address
Definition: btrfs.h:156
Definition: fs.h:216
uint32_t minimal_io_size
Definition: btrfs.h:166
uint64_t num_entries
Definition: btrfs.h:434
Definition: name.c:36
static const uint64_t superblock_addrs[]
Definition: btrfs.h:13
uint16_t type
Definition: btrfs.h:584
uint64_t num_bitmaps
Definition: btrfs.h:435
BTRFS_TIME rtime
Definition: btrfs.h:312
uint64_t bytes_used
Definition: btrfs.h:163
uint16_t length
Definition: btrfs.h:585
Definition: msctf.idl:510
uint16_t num_stripes
Definition: btrfs.h:324
uint32_t num_items
Definition: btrfs.h:144
uint64_t offset
Definition: btrfs.h:347
uint8_t extent_root_level
Definition: btrfs.h:199
BALANCE_ARGS system
Definition: btrfs.h:505
uint64_t transid
Definition: btrfs.h:256
uint64_t flags
Definition: btrfs.h:371
uint32_t sector_size
Definition: btrfs.h:221
uint64_t chunktree
Definition: btrfs.h:446
BTRFS_UUID chunktree_uuid
Definition: btrfs.h:450
uint64_t compat_flags
Definition: btrfs.h:227
uint64_t type
Definition: btrfs.h:320
uint32_t leaf_size
Definition: btrfs.h:223
uint64_t chunk_root_generation
Definition: btrfs.h:226
uint32_t st_uid
Definition: btrfs.h:275
uint16_t n
Definition: btrfs.h:258
uint64_t drange_start
Definition: btrfs.h:481
uint64_t offset
Definition: btrfs.h:418
uint64_t tree_id
Definition: btrfs.h:143
uint8_t compression
Definition: btrfs.h:337
uint64_t log_root_transid
Definition: btrfs.h:216
uint64_t address
Definition: btrfs.h:448
uint64_t rtransid
Definition: btrfs.h:308
uint64_t fs_tree_generation
Definition: btrfs.h:188
uint64_t num_devices
Definition: btrfs.h:195
uint32_t st_mode
Definition: btrfs.h:277
uint64_t start_offset
Definition: btrfs.h:169
uint32_t usage_end
Definition: btrfs.h:476
uint64_t incompat_flags
Definition: btrfs.h:229
uint64_t generation
Definition: btrfs.h:168