ReactOS 0.4.16-dev-306-g647d351
|
#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) |
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 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 172 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 209 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 272 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 320 of file fstubex.c.
Referenced by FstubWritePartitionTableEFI().
NTSTATUS NTAPI FstubCreateDiskEFI | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PCREATE_DISK_GPT | DiskInfo | ||
) |
Definition at line 388 of file fstubex.c.
Referenced by IoCreateDisk().
NTSTATUS NTAPI FstubCreateDiskMBR | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PCREATE_DISK_MBR | DiskInfo | ||
) |
Definition at line 341 of file fstubex.c.
Referenced by IoCreateDisk().
NTSTATUS NTAPI FstubCreateDiskRaw | ( | IN PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 457 of file fstubex.c.
Referenced by IoCreateDisk().
Definition at line 535 of file fstubex.c.
Referenced by FstubDbgPrintDriveLayoutEx(), FstubDbgPrintPartitionEx(), and FstubDbgPrintSetPartitionEx().
Definition at line 557 of file fstubex.c.
Referenced by IoReadPartitionTableEx(), and IoWritePartitionTableEx().
VOID NTAPI FstubDbgPrintPartitionEx | ( | IN PPARTITION_INFORMATION_EX | PartitionEntry, |
IN ULONG | PartitionNumber | ||
) |
Definition at line 599 of file fstubex.c.
Referenced by FstubDbgPrintDriveLayoutEx().
VOID NTAPI FstubDbgPrintSetPartitionEx | ( | IN PSET_PARTITION_INFORMATION_EX | PartitionEntry, |
IN ULONG | PartitionNumber | ||
) |
Definition at line 639 of file fstubex.c.
Referenced by IoSetPartitionInformationEx().
NTSTATUS NTAPI FstubDetectPartitionStyle | ( | IN PDISK_INFORMATION | Disk, |
IN PARTITION_STYLE * | PartitionStyle | ||
) |
Definition at line 670 of file fstubex.c.
Referenced by FstubCreateDiskRaw(), IoReadPartitionTableEx(), IoSetPartitionInformationEx(), and IoVerifyPartitionTable().
VOID NTAPI FstubFreeDiskInformation | ( | IN PDISK_INFORMATION | DiskBuffer | ) |
Definition at line 717 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 731 of file fstubex.c.
Referenced by FstubAllocateDiskInformation().
NTSTATUS NTAPI FstubReadHeaderEFI | ( | IN PDISK_INFORMATION | Disk, |
IN BOOLEAN | ReadBackupTable, | ||
PEFI_PARTITION_HEADER * | HeaderBuffer | ||
) |
Definition at line 825 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 973 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 1125 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 1192 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 1246 of file fstubex.c.
Referenced by IoSetPartitionInformationEx().
Definition at line 1295 of file fstubex.c.
Referenced by IoVerifyPartitionTable().
NTSTATUS NTAPI FstubWriteBootSectorEFI | ( | IN PDISK_INFORMATION | Disk | ) |
Definition at line 1425 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 1477 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 1545 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 1634 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 1716 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 1748 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 1807 of file fstubex.c.
Referenced by FdoIoctlDiskCreateDisk(), FdoIoctlDiskDeleteDriveLayout(), and FdoIoctlDiskSetDriveLayoutEx().
NTSTATUS NTAPI IoGetBootDiskInformation | ( | IN OUT PBOOTDISK_INFORMATION | BootDiskInformation, |
IN ULONG | Size | ||
) |
Definition at line 1837 of file fstubex.c.
NTSTATUS NTAPI IoReadDiskSignature | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN ULONG | BytesPerSector, | ||
OUT PDISK_SIGNATURE | Signature | ||
) |
Definition at line 2171 of file fstubex.c.
NTSTATUS NTAPI IoReadPartitionTableEx | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PDRIVE_LAYOUT_INFORMATION_EX * | DriveLayout | ||
) |
Definition at line 2279 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 2347 of file fstubex.c.
Referenced by PartitionHandleDeviceControl().
Definition at line 2413 of file fstubex.c.
NTSTATUS NTAPI IoWritePartitionTableEx | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PDRIVE_LAYOUT_INFORMATION_EX | DriveLayout | ||
) |
Definition at line 2466 of file fstubex.c.
Referenced by FdoIoctlDiskSetDriveLayout(), FdoIoctlDiskSetDriveLayoutEx(), FstubReadPartitionTableEFI(), and FstubSetPartitionInformationEFI().