ReactOS  0.4.15-dev-439-g292f67a
btrfs.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS File System Recognizer
4  * FILE: drivers/filesystems/fs_rec/btrfs.h
5  * PURPOSE: BTRFS Header File
6  * PROGRAMMER: Peter Hater
7  * Pierre Schweitzer (pierre@reactos.org)
8  */
9 
10 #include <pshpack1.h>
11 typedef struct {
12  UINT8 uuid[16];
13 } BTRFS_UUID;
14 
15 typedef struct _BTRFS_SUPER_BLOCK {
21  // Partial
23 #include <poppack.h>
24 
26 C_ASSERT(FIELD_OFFSET(BTRFS_SUPER_BLOCK, sb_phys_addr) == 0x30);
28 
29 #define BTRFS_MAGIC 0x4d5f53665248425f
30 #define BTRFS_SB_OFFSET 0x10000
31 #define BTRFS_SB_SIZE 0x1000
BTRFS_UUID uuid
Definition: btrfs.h:17
C_ASSERT(FIELD_OFFSET(BTRFS_SUPER_BLOCK, uuid)==0x20)
u32_t magic(void)
UINT64 magic
Definition: btrfs.h:20
struct _BTRFS_SUPER_BLOCK BTRFS_SUPER_BLOCK
UINT64 sb_phys_addr
Definition: btrfs.h:18
struct _BTRFS_SUPER_BLOCK * PBTRFS_SUPER_BLOCK
UINT64 flags
Definition: btrfs.h:19
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:254
Definition: msctf.idl:510
unsigned long long UINT64
unsigned char UINT8
UINT8 checksum[32]
Definition: btrfs.h:16