|
ReactOS 0.4.16-dev-2613-g9533ad7
|
#include <ntoskrnl.h>#include <debug.h>#include <pshpack1.h>#include <poppack.h>
Go to the source code of this file.
Classes | |
| struct | _DISK_INFORMATION |
| struct | _EFI_PARTITION_HEADER |
| struct | _EFI_PARTITION_ENTRY |
| struct | _PARTITION_TABLE_ENTRY |
| struct | _MASTER_BOOT_RECORD |
Macros | |
| #define | NDEBUG |
| #define | PARTITION_ENTRY_SIZE 128 |
| #define | EFI_HEADER_SIGNATURE 0x5452415020494645ULL |
| #define | EFI_HEADER_REVISION_1 0x00010000 |
| #define | EFI_PMBR_OSTYPE_EFI 0xEE |
| #define | EFI_GUID_STRING_SIZE 0x27 |
| #define | IS_VALID_DISK_INFO(Disk) |
| #define | FstubDbgPrintDriveLayoutEx(DriveLayout) |
| #define | FstubDbgPrintSetPartitionEx(PartitionEntry, PartitionNumber) |
Typedefs | |
| typedef struct _DISK_INFORMATION | DISK_INFORMATION |
| typedef struct _DISK_INFORMATION * | PDISK_INFORMATION |
| typedef struct _EFI_PARTITION_HEADER | EFI_PARTITION_HEADER |
| typedef struct _EFI_PARTITION_HEADER * | PEFI_PARTITION_HEADER |
| typedef struct _EFI_PARTITION_ENTRY | EFI_PARTITION_ENTRY |
| typedef struct _EFI_PARTITION_ENTRY * | PEFI_PARTITION_ENTRY |
| typedef struct _PARTITION_TABLE_ENTRY | PARTITION_TABLE_ENTRY |
| typedef struct _PARTITION_TABLE_ENTRY * | PPARTITION_TABLE_ENTRY |
| typedef struct _MASTER_BOOT_RECORD | MASTER_BOOT_RECORD |
| typedef struct _MASTER_BOOT_RECORD * | PMASTER_BOOT_RECORD |
| #define FstubDbgPrintSetPartitionEx | ( | PartitionEntry, | |
| PartitionNumber | |||
| ) |
| #define IS_VALID_DISK_INFO | ( | Disk | ) |
| typedef struct _DISK_INFORMATION DISK_INFORMATION |
| typedef struct _DISK_INFORMATION * PDISK_INFORMATION |
| typedef struct _EFI_PARTITION_ENTRY * PEFI_PARTITION_ENTRY |
| typedef struct _EFI_PARTITION_HEADER * PEFI_PARTITION_HEADER |
| typedef struct _MASTER_BOOT_RECORD * PMASTER_BOOT_RECORD |
| C_ASSERT | ( | sizeof(EFI_PARTITION_ENTRY) | = =128 | ) |
| C_ASSERT | ( | sizeof(EFI_PARTITION_HEADER) | = =92 | ) |
| C_ASSERT | ( | sizeof(MASTER_BOOT_RECORD) | = =512 | ) |
| C_ASSERT | ( | sizeof(PARTITION_TABLE_ENTRY) | = =16 | ) |
Definition at line 166 of file fstubex.c.
Referenced by FstubCreateDiskEFI().
| NTSTATUS NTAPI FstubAllocateDiskInformation | ( | IN PDEVICE_OBJECT | DeviceObject, |
| OUT PDISK_INFORMATION * | DiskBuffer, | ||
| IN PDISK_GEOMETRY_EX DiskGeometry | OPTIONAL | ||
| ) |
Definition at line 202 of file fstubex.c.
Referenced by FstubCreateDiskEFI(), FstubCreateDiskMBR(), FstubCreateDiskRaw(), IoReadPartitionTableEx(), IoSetPartitionInformationEx(), IoVerifyPartitionTable(), and IoWritePartitionTableEx().
| PDRIVE_LAYOUT_INFORMATION NTAPI FstubConvertExtendedToLayout | ( | IN PDRIVE_LAYOUT_INFORMATION_EX | LayoutEx | ) |
Definition at line 265 of file fstubex.c.
Referenced by FstubWritePartitionTableMBR().
| VOID NTAPI FstubCopyEntryEFI | ( | OUT PEFI_PARTITION_ENTRY | Entry, |
| IN PPARTITION_INFORMATION_EX | Partition, | ||
| ULONG | SectorSize | ||
| ) |
Definition at line 313 of file fstubex.c.
Referenced by FstubWritePartitionTableEFI().
| NTSTATUS NTAPI FstubCreateDiskEFI | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN PCREATE_DISK_GPT | DiskInfo | ||
| ) |
Definition at line 381 of file fstubex.c.
Referenced by IoCreateDisk().
| NTSTATUS NTAPI FstubCreateDiskMBR | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN PCREATE_DISK_MBR | DiskInfo | ||
| ) |
Definition at line 334 of file fstubex.c.
Referenced by IoCreateDisk().
| NTSTATUS NTAPI FstubCreateDiskRaw | ( | IN PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 450 of file fstubex.c.
Referenced by IoCreateDisk().
| NTSTATUS NTAPI FstubDetectPartitionStyle | ( | IN PDISK_INFORMATION | Disk, |
| IN PARTITION_STYLE * | PartitionStyle | ||
| ) |
Definition at line 671 of file fstubex.c.
Referenced by FstubCreateDiskRaw(), IoReadPartitionTableEx(), IoSetPartitionInformationEx(), and IoVerifyPartitionTable().
| VOID NTAPI FstubFreeDiskInformation | ( | IN PDISK_INFORMATION | DiskBuffer | ) |
Definition at line 718 of file fstubex.c.
Referenced by FstubCreateDiskEFI(), FstubCreateDiskMBR(), FstubCreateDiskRaw(), IoReadPartitionTableEx(), IoSetPartitionInformationEx(), IoVerifyPartitionTable(), and IoWritePartitionTableEx().
| NTSTATUS NTAPI FstubGetDiskGeometry | ( | IN PDEVICE_OBJECT | DeviceObject, |
| OUT PDISK_GEOMETRY_EX | Geometry | ||
| ) |
Definition at line 732 of file fstubex.c.
Referenced by FstubAllocateDiskInformation().
| NTSTATUS NTAPI FstubReadHeaderEFI | ( | IN PDISK_INFORMATION | Disk, |
| IN BOOLEAN | ReadBackupTable, | ||
| PEFI_PARTITION_HEADER * | HeaderBuffer | ||
| ) |
Definition at line 826 of file fstubex.c.
Referenced by FstubReadPartitionTableEFI(), FstubVerifyPartitionTableEFI(), and IoWritePartitionTableEx().
| NTSTATUS NTAPI FstubReadPartitionTableEFI | ( | IN PDISK_INFORMATION | Disk, |
| IN BOOLEAN | ReadBackupTable, | ||
| OUT PDRIVE_LAYOUT_INFORMATION_EX * | DriveLayout | ||
| ) |
Definition at line 974 of file fstubex.c.
Referenced by IoReadPartitionTableEx().
| NTSTATUS NTAPI FstubReadPartitionTableMBR | ( | IN PDISK_INFORMATION | Disk, |
| IN BOOLEAN | ReturnRecognizedPartitions, | ||
| OUT PDRIVE_LAYOUT_INFORMATION_EX * | ReturnedDriveLayout | ||
| ) |
Definition at line 1123 of file fstubex.c.
Referenced by IoReadPartitionTableEx().
| NTSTATUS NTAPI FstubReadSector | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN ULONG | SectorSize, | ||
| IN ULONGLONG StartingSector | OPTIONAL, | ||
| OUT PVOID | Buffer | ||
| ) |
Definition at line 1190 of file fstubex.c.
Referenced by FstubCreateDiskMBR(), FstubCreateDiskRaw(), FstubDetectPartitionStyle(), FstubReadHeaderEFI(), FstubReadPartitionTableEFI(), FstubVerifyPartitionTableEFI(), FstubWriteBootSectorEFI(), and IoReadDiskSignature().
| NTSTATUS NTAPI FstubSetPartitionInformationEFI | ( | IN PDISK_INFORMATION | Disk, |
| IN ULONG | PartitionNumber, | ||
| IN SET_PARTITION_INFORMATION_GPT * | PartitionInfo | ||
| ) |
Definition at line 1244 of file fstubex.c.
Referenced by IoSetPartitionInformationEx().
Definition at line 1293 of file fstubex.c.
Referenced by IoVerifyPartitionTable().
| NTSTATUS NTAPI FstubWriteBootSectorEFI | ( | IN PDISK_INFORMATION | Disk | ) |
Definition at line 1423 of file fstubex.c.
Referenced by FstubCreateDiskEFI().
| NTSTATUS NTAPI FstubWriteEntryEFI | ( | IN PDISK_INFORMATION | Disk, |
| IN ULONG | PartitionsSizeSector, | ||
| IN ULONG | PartitionEntryNumber, | ||
| IN PEFI_PARTITION_ENTRY | PartitionEntry, | ||
| IN BOOLEAN | WriteBackupTable, | ||
| IN BOOLEAN | ForceWrite, | ||
| OUT PULONG PartitionEntryCRC32 | OPTIONAL | ||
| ) |
Definition at line 1475 of file fstubex.c.
Referenced by FstubWritePartitionTableEFI().
| NTSTATUS NTAPI FstubWriteHeaderEFI | ( | IN PDISK_INFORMATION | Disk, |
| IN ULONG | PartitionsSizeSector, | ||
| IN GUID | DiskGUID, | ||
| IN ULONG | NumberOfEntries, | ||
| IN ULONGLONG | FirstUsableLBA, | ||
| IN ULONGLONG | LastUsableLBA, | ||
| IN ULONG | PartitionEntryCRC32, | ||
| IN BOOLEAN | WriteBackupTable | ||
| ) |
Definition at line 1543 of file fstubex.c.
Referenced by FstubVerifyPartitionTableEFI(), and FstubWritePartitionTableEFI().
| NTSTATUS NTAPI FstubWritePartitionTableEFI | ( | IN PDISK_INFORMATION | Disk, |
| IN GUID | DiskGUID, | ||
| IN ULONG | MaxPartitionCount, | ||
| IN ULONGLONG | FirstUsableLBA, | ||
| IN ULONGLONG | LastUsableLBA, | ||
| IN BOOLEAN | WriteBackupTable, | ||
| IN ULONG | PartitionCount, | ||
| IN PPARTITION_INFORMATION_EX PartitionEntries | OPTIONAL | ||
| ) |
Definition at line 1632 of file fstubex.c.
Referenced by FstubCreateDiskEFI(), and IoWritePartitionTableEx().
| NTSTATUS NTAPI FstubWritePartitionTableMBR | ( | IN PDISK_INFORMATION | Disk, |
| IN PDRIVE_LAYOUT_INFORMATION_EX | LayoutEx | ||
| ) |
Definition at line 1709 of file fstubex.c.
Referenced by IoWritePartitionTableEx().
| NTSTATUS NTAPI FstubWriteSector | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN ULONG | SectorSize, | ||
| IN ULONGLONG StartingSector | OPTIONAL, | ||
| IN PVOID | Buffer | ||
| ) |
Definition at line 1741 of file fstubex.c.
Referenced by FstubCreateDiskMBR(), FstubCreateDiskRaw(), FstubVerifyPartitionTableEFI(), FstubWriteBootSectorEFI(), FstubWriteEntryEFI(), and FstubWriteHeaderEFI().
| NTSTATUS NTAPI IoCreateDisk | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN PCREATE_DISK | Disk | ||
| ) |
Definition at line 1800 of file fstubex.c.
Referenced by FdoIoctlDiskCreateDisk(), FdoIoctlDiskDeleteDriveLayout(), and FdoIoctlDiskSetDriveLayoutEx().
| NTSTATUS NTAPI IoGetBootDiskInformation | ( | IN OUT PBOOTDISK_INFORMATION | BootDiskInformation, |
| IN ULONG | Size | ||
| ) |
Definition at line 1830 of file fstubex.c.
| NTSTATUS NTAPI IoReadDiskSignature | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN ULONG | BytesPerSector, | ||
| OUT PDISK_SIGNATURE | Signature | ||
| ) |
Definition at line 2166 of file fstubex.c.
| NTSTATUS NTAPI IoReadPartitionTableEx | ( | IN PDEVICE_OBJECT | DeviceObject, |
| OUT PDRIVE_LAYOUT_INFORMATION_EX * | DriveLayout | ||
| ) |
Definition at line 2274 of file fstubex.c.
Referenced by ClasspDuidGetDriveLayout(), FstubSetPartitionInformationEFI(), IoGetBootDiskInformation(), IopCreateArcNamesDisk(), and PartMgrGetDriveLayout().
| NTSTATUS NTAPI IoSetPartitionInformationEx | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN ULONG | PartitionNumber, | ||
| IN PSET_PARTITION_INFORMATION_EX | PartitionInfo | ||
| ) |
Definition at line 2340 of file fstubex.c.
Referenced by PartitionHandleDeviceControl().
Definition at line 2406 of file fstubex.c.
| NTSTATUS NTAPI IoWritePartitionTableEx | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN PDRIVE_LAYOUT_INFORMATION_EX | DriveLayout | ||
| ) |
Definition at line 2459 of file fstubex.c.
Referenced by FdoIoctlDiskSetDriveLayout(), FdoIoctlDiskSetDriveLayoutEx(), FstubReadPartitionTableEFI(), and FstubSetPartitionInformationEFI().