|
ReactOS 0.4.16-dev-1996-g5047e62
|
#include "diskpart.h"#include "guid.h"#include <ntddscsi.h>#include <debug.h>#include <pshpack1.h>#include <poppack.h>
Go to the source code of this file.
Classes | |
| struct | _PARTITION |
| struct | _PARTITION_SECTOR |
Macros | |
| #define | NDEBUG |
| #define | InsertAscendingList(ListHead, NewEntry, Type, ListEntryField, SortField) |
| #define | PARTITION_LINUX 0x83 |
| #define | PARTITION_TBL_SIZE 4 |
| #define | MBR_MAGIC 0xAA55 |
| #define | ROOT_NAME L"\\Registry\\Machine\\HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter" |
Typedefs | |
| typedef struct _PARTITION | PARTITION |
| typedef struct _PARTITION * | PPARTITION |
| typedef struct _PARTITION_SECTOR | PARTITION_SECTOR |
| typedef struct _PARTITION_SECTOR * | PPARTITION_SECTOR |
Variables | |
| LIST_ENTRY | DiskListHead |
| LIST_ENTRY | BiosDiskListHead |
| LIST_ENTRY | VolumeListHead |
| PDISKENTRY | CurrentDisk = NULL |
| PPARTENTRY | CurrentPartition = NULL |
| PVOLENTRY | CurrentVolume = NULL |
Definition at line 18 of file partlist.c.
| #define MBR_MAGIC 0xAA55 |
Definition at line 41 of file partlist.c.
| #define NDEBUG |
Definition at line 15 of file partlist.c.
| #define PARTITION_LINUX 0x83 |
Definition at line 37 of file partlist.c.
| #define PARTITION_TBL_SIZE 4 |
Definition at line 39 of file partlist.c.
| #define ROOT_NAME L"\\Registry\\Machine\\HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter" |
Definition at line 359 of file partlist.c.
| typedef struct _PARTITION PARTITION |
| typedef struct _PARTITION_SECTOR PARTITION_SECTOR |
| typedef struct _PARTITION * PPARTITION |
| typedef struct _PARTITION_SECTOR * PPARTITION_SECTOR |
Definition at line 1129 of file partlist.c.
|
static |
Definition at line 618 of file partlist.c.
Referenced by AddDiskToList().
|
static |
Definition at line 508 of file partlist.c.
Referenced by AddDiskToList().
Definition at line 1656 of file partlist.c.
Referenced by CreateVolumeList().
Definition at line 191 of file partlist.c.
Definition at line 1417 of file partlist.c.
Definition at line 1772 of file partlist.c.
Referenced by rescan_main(), and wmain().
Definition at line 1491 of file partlist.c.
Definition at line 1810 of file partlist.c.
Referenced by rescan_main(), and wmain().
|
static |
Definition at line 269 of file partlist.c.
|
static |
Definition at line 239 of file partlist.c.
| NTSTATUS DismountVolume | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2492 of file partlist.c.
Definition at line 363 of file partlist.c.
|
static |
Definition at line 204 of file partlist.c.
|
static |
Definition at line 2093 of file partlist.c.
| PPARTENTRY GetNextUnpartitionedEntry | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2463 of file partlist.c.
Referenced by DeleteGptPartition(), and DeleteMbrPartition().
| PPARTENTRY GetPrevUnpartitionedEntry | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2434 of file partlist.c.
Referenced by DeleteGptPartition(), and DeleteMbrPartition().
| ULONG GetPrimaryPartitionCount | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 2071 of file partlist.c.
Definition at line 1550 of file partlist.c.
Referenced by AddVolumeToList().
| PVOLENTRY GetVolumeFromPartition | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2600 of file partlist.c.
Referenced by clean_main().
Definition at line 1616 of file partlist.c.
Referenced by AddVolumeToList().
|
static |
Definition at line 2040 of file partlist.c.
|
static |
Definition at line 2055 of file partlist.c.
| VOID ReadLayoutBuffer | ( | _In_ HANDLE | FileHandle, |
| _In_ PDISKENTRY | DiskEntry | ||
| ) |
Definition at line 1067 of file partlist.c.
Referenced by AddDiskToList(), and CreateDisk().
|
static |
Definition at line 2115 of file partlist.c.
Definition at line 2637 of file partlist.c.
Referenced by clean_main().
| VOID ScanForUnpartitionedGptDiskSpace | ( | PDISKENTRY | DiskEntry | ) |
Definition at line 923 of file partlist.c.
Referenced by AddDiskToList(), and ConvertGPT().
| VOID ScanForUnpartitionedMbrDiskSpace | ( | PDISKENTRY | DiskEntry | ) |
Definition at line 662 of file partlist.c.
Referenced by AddDiskToList(), ConvertMBR(), CreateExtendedPartition(), and CreatePrimaryPartition().
|
static |
Definition at line 313 of file partlist.c.
| VOID UpdateGptDiskLayout | ( | _In_ PDISKENTRY | DiskEntry, |
| _In_ BOOL | DeleteEntry | ||
| ) |
Definition at line 2344 of file partlist.c.
Referenced by CreateEfiPartition(), CreateMsrPartition(), CreatePrimaryGptPartition(), DeleteGptPartition(), gpt_main(), setid_main(), and UniqueIdDisk().
| VOID UpdateMbrDiskLayout | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 2167 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryMbrPartition(), DeleteMbrPartition(), inactive_main(), setid_main(), and UniqueIdDisk().
| NTSTATUS WriteGptPartitions | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 1963 of file partlist.c.
Referenced by CreateEfiPartition(), CreateMsrPartition(), CreatePrimaryGptPartition(), DeleteGptPartition(), gpt_main(), setid_main(), and UniqueIdDisk().
| NTSTATUS WriteMbrPartitions | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 1839 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryMbrPartition(), DeleteMbrPartition(), inactive_main(), setid_main(), and UniqueIdDisk().
| LIST_ENTRY BiosDiskListHead |
Definition at line 74 of file partlist.c.
Referenced by AddDiskToList(), CreatePartitionList(), DestroyPartitionList(), and EnumerateBiosDiskEntries().
| PDISKENTRY CurrentDisk = NULL |
Definition at line 77 of file partlist.c.
Referenced by active_main(), clean_main(), ConvertGPT(), ConvertMBR(), CreateDisk(), CreateEfiPartition(), CreateExtendedPartition(), CreateLogicalPartition(), CreateMsrPartition(), CreatePartitionList(), CreatePrimaryGptPartition(), CreatePrimaryMbrPartition(), CreatePrimaryPartition(), DeleteGptPartition(), DeleteMbrPartition(), DeletePartition(), DestroyPartitionList(), DetailDisk(), DetailPartition(), DumpDisk(), DumpPartition(), GetNextPartition(), GetPrevPartition(), gpt_main(), inactive_main(), ListPartition(), PrintDisk(), SelectDisk(), SelectPartition(), SelectVolume(), setid_main(), and UniqueIdDisk().
| PPARTENTRY CurrentPartition = NULL |
Definition at line 78 of file partlist.c.
Referenced by CreatePartitionList(), and DestroyPartitionList().
Definition at line 79 of file partlist.c.
Referenced by CreateVolumeList(), DestroyVolumeList(), DetailVolume(), filesystems_main(), PrintVolume(), RemoveVolume(), and SelectVolume().
| LIST_ENTRY DiskListHead |
Definition at line 73 of file partlist.c.
Referenced by AddDiskToList(), CreatePartitionList(), DestroyPartitionList(), DetailVolume(), ListDisk(), and SelectDisk().
| LIST_ENTRY VolumeListHead |
Definition at line 75 of file partlist.c.
Referenced by AddVolumeToList(), CreateVolumeList(), DestroyVolumeList(), DetailDisk(), DetailPartition(), GetVolumeFromPartition(), ListVolume(), and SelectVolume().