ReactOS  0.4.15-dev-5496-g599ba9c
finstext2.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define PACKED __attribute__((packed))
4 
5 typedef struct
6 {
7  unsigned char JmpBoot[3];
8  unsigned char BootDrive;
9  //unsigned char BootPartition;
10  //unsigned char SectorsPerTrack;
11  //unsigned short NumberOfHeads;
12  //unsigned long Reserved1;
13  //unsigned long Reserved2;
14 
15  unsigned long Ext2VolumeStartSector; // Start sector of the ext2 volume
16  unsigned long Ext2BlockSize; // Block size in sectors
17  unsigned long Ext2BlockSizeInBytes; // Block size in bytes
18  unsigned long Ext2PointersPerBlock; // Number of block pointers that can be contained in one block
19  unsigned long Ext2GroupDescPerBlock; // Number of group descriptors per block
20  unsigned long Ext2FirstDataBlock; // First data block (1 for 1024-byte blocks, 0 for bigger sizes)
21  unsigned long Ext2InodesPerGroup; // Number of inodes per group
22  unsigned long Ext2InodesPerBlock; // Number of inodes per block
23 
24  unsigned char BootCodeAndData[459];
25 
26  unsigned char BootPartition;
27  unsigned short BootSignature;
28 
29 } PACKED EXT2_BOOTCODE, *PEXT2_BOOTCODE;
struct PACKED * PEXT2_BOOTCODE
unsigned short BootSignature
Definition: finstext2.h:27
unsigned long Ext2BlockSizeInBytes
Definition: finstext2.h:17
unsigned long Ext2VolumeStartSector
Definition: finstext2.h:15
unsigned long Ext2GroupDescPerBlock
Definition: finstext2.h:19
unsigned char BootDrive
Definition: finstext2.h:8
unsigned long Ext2InodesPerBlock
Definition: finstext2.h:22
unsigned long Ext2PointersPerBlock
Definition: finstext2.h:18
unsigned long Ext2FirstDataBlock
Definition: finstext2.h:20
unsigned char BootPartition
Definition: finstext2.h:26
unsigned long Ext2BlockSize
Definition: finstext2.h:16
unsigned long Ext2InodesPerGroup
Definition: finstext2.h:21