2002-08-21 03:34:01 +00:00
|
|
|
#ifndef __FINSTEXT2_H
|
|
|
|
#define __FINSTEXT2_H
|
|
|
|
|
|
|
|
|
|
|
|
#define PACKED __attribute__((packed))
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned char JmpBoot[3];
|
|
|
|
unsigned char BootDrive;
|
2003-04-15 22:48:06 +00:00
|
|
|
//unsigned char BootPartition;
|
2002-08-21 03:34:01 +00:00
|
|
|
//unsigned char SectorsPerTrack;
|
|
|
|
//unsigned short NumberOfHeads;
|
|
|
|
//unsigned long Reserved1;
|
|
|
|
//unsigned long Reserved2;
|
|
|
|
|
|
|
|
unsigned long Ext2VolumeStartSector; // Start sector of the ext2 volume
|
|
|
|
unsigned long Ext2BlockSize; // Block size in sectors
|
|
|
|
unsigned long Ext2BlockSizeInBytes; // Block size in bytes
|
|
|
|
unsigned long Ext2PointersPerBlock; // Number of block pointers that can be contained in one block
|
|
|
|
unsigned long Ext2GroupDescPerBlock; // Number of group descriptors per block
|
|
|
|
unsigned long Ext2FirstDataBlock; // First data block (1 for 1024-byte blocks, 0 for bigger sizes)
|
|
|
|
unsigned long Ext2InodesPerGroup; // Number of inodes per group
|
|
|
|
unsigned long Ext2InodesPerBlock; // Number of inodes per block
|
2003-04-15 22:48:06 +00:00
|
|
|
|
|
|
|
unsigned char BootCodeAndData[459];
|
|
|
|
|
|
|
|
unsigned char BootPartition;
|
|
|
|
unsigned short BootSignature;
|
|
|
|
|
2002-08-21 03:34:01 +00:00
|
|
|
} PACKED EXT2_BOOTCODE, *PEXT2_BOOTCODE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // defined __FINSTEXT2_H
|