mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
1f2d67a841
Rename the Ext2 recognizer to a more generic Ext to be more future-proof with a possible upcoming ext4 support. Also, it already makes no sense to use the name ext2 as it already recognizes all the FS of the "Ext family". In addition, add the Ext Recognizer for CDs.
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS File System Recognizer
|
|
* FILE: drivers/filesystems/fs_rec/ext.h
|
|
* PURPOSE: EXT Header File
|
|
* PROGRAMMER: Pierre Schweitzer (pierre@reactos.org)
|
|
*/
|
|
|
|
#include <pshpack1.h>
|
|
typedef struct _EXT_SUPER_BLOCK {
|
|
ULONG InodesCount;
|
|
ULONG BlocksCount;
|
|
ULONG ReservedBlocksCount;
|
|
ULONG FreeBlocksCount;
|
|
ULONG FreeInodesCount;
|
|
ULONG FirstDataBlock;
|
|
ULONG LogBlockSize;
|
|
LONG LogFragSize;
|
|
ULONG BlocksPerGroup;
|
|
ULONG FragsPerGroup;
|
|
ULONG InodesPerGroup;
|
|
ULONG MountTime;
|
|
ULONG WriteTime;
|
|
USHORT MountCount;
|
|
SHORT MaxMountCount;
|
|
USHORT Magic;
|
|
USHORT State;
|
|
USHORT Errors;
|
|
USHORT MinorRevLevel;
|
|
ULONG LastCheck;
|
|
ULONG CheckInterval;
|
|
ULONG CreatorOS;
|
|
ULONG RevLevel;
|
|
USHORT DefResUid;
|
|
USHORT DefResGid;
|
|
// Partial
|
|
} EXT_SUPER_BLOCK, *PEXT_SUPER_BLOCK;
|
|
#include <poppack.h>
|
|
|
|
C_ASSERT(FIELD_OFFSET(EXT_SUPER_BLOCK, FreeInodesCount) == 0x10);
|
|
C_ASSERT(FIELD_OFFSET(EXT_SUPER_BLOCK, BlocksPerGroup) == 0x20);
|
|
C_ASSERT(FIELD_OFFSET(EXT_SUPER_BLOCK, WriteTime) == 0x30);
|
|
C_ASSERT(FIELD_OFFSET(EXT_SUPER_BLOCK, LastCheck) == 0x40);
|
|
C_ASSERT(FIELD_OFFSET(EXT_SUPER_BLOCK, DefResUid) == 0x50);
|
|
|
|
#define EXT_SUPER_MAGIC 0xEF53
|
|
#define EXT_SB_OFFSET 0x400
|
|
#define EXT_SB_SIZE 0x400
|