ReactOS  0.4.15-dev-3439-g2693a26
ext2.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/ext2.h
5  * PURPOSE: EXT2 Header File
6  * PROGRAMMER: Pierre Schweitzer (pierre@reactos.org)
7  */
8 
9 #include <pshpack1.h>
10 typedef struct _EXT2_SUPER_BLOCK {
36  // Partial
38 #include <poppack.h>
39 
40 C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, FreeInodesCount) == 0x10);
41 C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, BlocksPerGroup) == 0x20);
42 C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, WriteTime) == 0x30);
43 C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, LastCheck) == 0x40);
44 C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, DefResUid) == 0x50);
45 
46 #define EXT2_SUPER_MAGIC 0xEF53
47 #define EXT2_SB_OFFSET 0x400
48 #define EXT2_SB_SIZE 0x400
USHORT DefResUid
Definition: ext2.h:34
ULONG InodesCount
Definition: ext2.h:11
ULONG RevLevel
Definition: ext2.h:33
ULONG MountTime
Definition: ext2.h:22
USHORT MountCount
Definition: ext2.h:24
struct ext2_sblock * PEXT2_SUPER_BLOCK
Definition: ext2.h:171
USHORT Magic
Definition: ext2.h:26
ULONG LogBlockSize
Definition: ext2.h:17
C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, FreeInodesCount)==0x10)
ULONG LastCheck
Definition: ext2.h:30
ULONG FreeInodesCount
Definition: ext2.h:15
USHORT Errors
Definition: ext2.h:28
ULONG CreatorOS
Definition: ext2.h:32
long LONG
Definition: pedump.c:60
short SHORT
Definition: pedump.c:59
USHORT DefResGid
Definition: ext2.h:35
ULONG InodesPerGroup
Definition: ext2.h:21
LONG LogFragSize
Definition: ext2.h:18
SHORT MaxMountCount
Definition: ext2.h:25
ULONG ReservedBlocksCount
Definition: ext2.h:13
ULONG FragsPerGroup
Definition: ext2.h:20
USHORT State
Definition: ext2.h:27
ULONG BlocksCount
Definition: ext2.h:12
ULONG BlocksPerGroup
Definition: ext2.h:19
USHORT MinorRevLevel
Definition: ext2.h:29
ULONG FreeBlocksCount
Definition: ext2.h:14
ULONG CheckInterval
Definition: ext2.h:31
unsigned short USHORT
Definition: pedump.c:61
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:255
ULONG FirstDataBlock
Definition: ext2.h:16
unsigned int ULONG
Definition: retypes.h:1
ULONG WriteTime
Definition: ext2.h:23
struct ext2_sblock EXT2_SUPER_BLOCK
Definition: ext2.h:171