ReactOS 0.4.15-dev-7705-g2320c37
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>
10typedef struct _EXT2_SUPER_BLOCK {
36 // Partial
38#include <poppack.h>
39
40C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, FreeInodesCount) == 0x10);
41C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, BlocksPerGroup) == 0x20);
45
46#define EXT2_SUPER_MAGIC 0xEF53
47#define EXT2_SB_OFFSET 0x400
48#define EXT2_SB_SIZE 0x400
struct ext2_sblock * PEXT2_SUPER_BLOCK
Definition: ext2.h:171
struct _EXT2_SUPER_BLOCK EXT2_SUPER_BLOCK
#define C_ASSERT(e)
Definition: intsafe.h:73
short SHORT
Definition: pedump.c:59
long LONG
Definition: pedump.c:60
unsigned short USHORT
Definition: pedump.c:61
ULONG InodesPerGroup
Definition: ext2.h:21
ULONG CheckInterval
Definition: ext2.h:31
USHORT MountCount
Definition: ext2.h:24
ULONG FreeInodesCount
Definition: ext2.h:15
ULONG MountTime
Definition: ext2.h:22
ULONG FragsPerGroup
Definition: ext2.h:20
ULONG InodesCount
Definition: ext2.h:11
ULONG LastCheck
Definition: ext2.h:30
SHORT MaxMountCount
Definition: ext2.h:25
ULONG RevLevel
Definition: ext2.h:33
ULONG BlocksCount
Definition: ext2.h:12
USHORT DefResGid
Definition: ext2.h:35
ULONG BlocksPerGroup
Definition: ext2.h:19
USHORT Magic
Definition: ext2.h:26
ULONG WriteTime
Definition: ext2.h:23
USHORT State
Definition: ext2.h:27
ULONG ReservedBlocksCount
Definition: ext2.h:13
LONG LogFragSize
Definition: ext2.h:18
USHORT MinorRevLevel
Definition: ext2.h:29
USHORT Errors
Definition: ext2.h:28
ULONG FirstDataBlock
Definition: ext2.h:16
ULONG CreatorOS
Definition: ext2.h:32
ULONG FreeBlocksCount
Definition: ext2.h:14
ULONG LogBlockSize
Definition: ext2.h:17
USHORT DefResUid
Definition: ext2.h:34
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:255
uint32_t ULONG
Definition: typedefs.h:59