5 #define PACKED __attribute__((packed))
9 unsigned char JmpBoot
[3];
10 unsigned char BootDrive
;
11 //unsigned char BootPartition;
12 //unsigned char SectorsPerTrack;
13 //unsigned short NumberOfHeads;
14 //unsigned long Reserved1;
15 //unsigned long Reserved2;
17 unsigned long Ext2VolumeStartSector
; // Start sector of the ext2 volume
18 unsigned long Ext2BlockSize
; // Block size in sectors
19 unsigned long Ext2BlockSizeInBytes
; // Block size in bytes
20 unsigned long Ext2PointersPerBlock
; // Number of block pointers that can be contained in one block
21 unsigned long Ext2GroupDescPerBlock
; // Number of group descriptors per block
22 unsigned long Ext2FirstDataBlock
; // First data block (1 for 1024-byte blocks, 0 for bigger sizes)
23 unsigned long Ext2InodesPerGroup
; // Number of inodes per group
24 unsigned long Ext2InodesPerBlock
; // Number of inodes per block
26 unsigned char BootCodeAndData
[459];
28 unsigned char BootPartition
;
29 unsigned short BootSignature
;
31 } PACKED EXT2_BOOTCODE
, *PEXT2_BOOTCODE
;
35 #endif // defined __FINSTEXT2_H