ReactOS
0.4.16-dev-321-g63bb46a
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
{
16
UINT8
checksum
[32];
17
BTRFS_UUID
uuid
;
18
UINT64
sb_phys_addr
;
19
UINT64
flags
;
20
UINT64
magic
;
21
// Partial
22
}
BTRFS_SUPER_BLOCK
, *
PBTRFS_SUPER_BLOCK
;
23
#include <poppack.h>
24
25
C_ASSERT
(
FIELD_OFFSET
(
BTRFS_SUPER_BLOCK
,
uuid
) == 0x20);
26
C_ASSERT
(
FIELD_OFFSET
(
BTRFS_SUPER_BLOCK
, sb_phys_addr) == 0x30);
27
C_ASSERT
(
FIELD_OFFSET
(
BTRFS_SUPER_BLOCK
, magic) == 0x40);
28
29
#define BTRFS_MAGIC 0x4d5f53665248425f
30
#define BTRFS_SB_OFFSET 0x10000
31
#define BTRFS_SB_SIZE 0x1000
UINT64
unsigned long long UINT64
Definition:
ProcessorBind.h:155
UINT8
unsigned char UINT8
Definition:
ProcessorBind.h:189
BTRFS_SUPER_BLOCK
struct _BTRFS_SUPER_BLOCK BTRFS_SUPER_BLOCK
PBTRFS_SUPER_BLOCK
struct _BTRFS_SUPER_BLOCK * PBTRFS_SUPER_BLOCK
uuid
Definition:
msctf.idl:550
C_ASSERT
#define C_ASSERT(e)
Definition:
intsafe.h:73
BTRFS_UUID
Definition:
btrfs.h:139
_BTRFS_SUPER_BLOCK
Definition:
btrfs.h:15
_BTRFS_SUPER_BLOCK::magic
UINT64 magic
Definition:
btrfs.h:20
_BTRFS_SUPER_BLOCK::checksum
UINT8 checksum[32]
Definition:
btrfs.h:16
_BTRFS_SUPER_BLOCK::sb_phys_addr
UINT64 sb_phys_addr
Definition:
btrfs.h:18
_BTRFS_SUPER_BLOCK::flags
UINT64 flags
Definition:
btrfs.h:19
_BTRFS_SUPER_BLOCK::uuid
BTRFS_UUID uuid
Definition:
btrfs.h:17
FIELD_OFFSET
#define FIELD_OFFSET(t, f)
Definition:
typedefs.h:255
drivers
filesystems
fs_rec
btrfs.h
Generated on Fri Dec 6 2024 06:05:22 for ReactOS by
1.9.6