|
ReactOS 0.4.16-dev-2498-g8632030
|
#include "precomp.h"#include <ntddscsi.h>#include <mountdev.h>#include "partlist.h"#include "volutil.h"#include "fsrec.h"#include "devutils.h"#include "registry.h"#include <debug.h>#include <pshpack1.h>#include <poppack.h>
Go to the source code of this file.
Classes | |
| struct | _REG_DISK_MOUNT_INFO |
Macros | |
| #define | NDEBUG |
| #define | ROOT_NAME L"\\Registry\\Machine\\HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter" |
| #define | GetPrimaryPartitionCount(DiskEntry) GetPartitionCount(&(DiskEntry)->PrimaryPartListHead) |
| #define | GetLogicalPartitionCount(DiskEntry) |
Typedefs | |
| typedef struct _REG_DISK_MOUNT_INFO | REG_DISK_MOUNT_INFO |
| typedef struct _REG_DISK_MOUNT_INFO * | PREG_DISK_MOUNT_INFO |
| #define GetLogicalPartitionCount | ( | DiskEntry | ) |
Definition at line 2595 of file partlist.c.
| #define GetPrimaryPartitionCount | ( | DiskEntry | ) | GetPartitionCount(&(DiskEntry)->PrimaryPartListHead) |
Definition at line 2592 of file partlist.c.
| #define NDEBUG |
Definition at line 20 of file partlist.c.
| #define ROOT_NAME L"\\Registry\\Machine\\HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter" |
| typedef struct _REG_DISK_MOUNT_INFO * PREG_DISK_MOUNT_INFO |
Definition at line 1500 of file partlist.c.
Referenced by CreatePartitionList().
|
static |
Definition at line 742 of file partlist.c.
Referenced by InitializePartitionEntry(), and ScanForUnpartitionedDiskSpace().
|
static |
Definition at line 1040 of file partlist.c.
Referenced by AddDiskToList().
Definition at line 69 of file partlist.c.
Referenced by AddDiskToList(), ConvertGPT(), InitializePartitionEntry(), ScanForUnpartitionedDiskSpace(), ScanForUnpartitionedGptDiskSpace(), and ScanForUnpartitionedMbrDiskSpace().
Definition at line 81 of file partlist.c.
Referenced by PeFmtCreateSection().
Definition at line 140 of file partlist.c.
Referenced by CreatePartition(), CreatePartitionList(), and DeletePartition().
|
static |
Definition at line 694 of file partlist.c.
Referenced by AddLogicalDiskSpace(), InitializePartitionEntry(), and ScanForUnpartitionedDiskSpace().
| BOOLEAN NTAPI CreatePartition | ( | _In_ PPARTLIST | List, |
| _Inout_ PPARTENTRY | PartEntry, | ||
| _In_opt_ ULONGLONG | SizeBytes, | ||
| _In_opt_ ULONG_PTR | PartitionInfo | ||
| ) |
Definition at line 2975 of file partlist.c.
Referenced by CreatePartitionPage(), DoCreatePartition(), InitSystemPartition(), and SelectPartitionPage().
Definition at line 2043 of file partlist.c.
Referenced by LoadSetupData(), rescan_main(), SelectPartitionPage(), UpgradeRepairPage(), and wmain().
| BOOLEAN NTAPI DeletePartition | ( | _In_ PPARTLIST | List, |
| _In_ PPARTENTRY | PartEntry, | ||
| _Out_opt_ PPARTENTRY * | FreeRegion | ||
| ) |
Definition at line 3075 of file partlist.c.
Referenced by DeletePartitionPage(), and DoDeletePartition().
Definition at line 2130 of file partlist.c.
Referenced by QuitPage(), rescan_main(), SelectPartitionPage(), and wmain().
|
static |
Definition at line 731 of file partlist.c.
Referenced by DeletePartition(), and DestroyPartitionList().
|
static |
Definition at line 239 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
|
static |
Definition at line 209 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
|
static |
Definition at line 3030 of file partlist.c.
Referenced by DeletePartition().
Definition at line 329 of file partlist.c.
Referenced by CreatePartitionList().
| PPARTENTRY FindSupportedSystemPartition | ( | IN PPARTLIST | List, |
| IN BOOLEAN | ForceSelect, | ||
| IN PDISKENTRY AlternativeDisk | OPTIONAL, | ||
| IN PPARTENTRY AlternativePart | OPTIONAL | ||
| ) |
Definition at line 3300 of file partlist.c.
Referenced by InitSystemPartition().
|
static |
Definition at line 1985 of file partlist.c.
Referenced by CreatePartitionList(), FindSupportedSystemPartition(), and SetActivePartition().
| PPARTENTRY NTAPI GetAdjUnpartitionedEntry | ( | _In_ PPARTENTRY | PartEntry, |
| _In_ BOOLEAN | Direction | ||
| ) |
Retrieves, if any, the unpartitioned disk region that is adjacent (next or previous) to the specified partition.
| [in] | PartEntry | Partition from where to find the adjacent unpartitioned region. |
| [in] | Direction | TRUE or FALSE to search the next or previous region, respectively. |
Definition at line 2856 of file partlist.c.
Referenced by DeletePartition(), DoCreatePartition(), and DoDeletePartition().
| PDISKENTRY GetDiskByBiosNumber | ( | _In_ PPARTLIST | List, |
| _In_ ULONG | HwDiskNumber | ||
| ) |
Definition at line 2193 of file partlist.c.
| PDISKENTRY GetDiskByNumber | ( | _In_ PPARTLIST | List, |
| _In_ ULONG | DiskNumber | ||
| ) |
Definition at line 2216 of file partlist.c.
Referenced by SelectPartition().
Definition at line 2239 of file partlist.c.
Referenced by ResolveArcNameManually().
| PDISKENTRY GetDiskBySignature | ( | _In_ PPARTLIST | List, |
| _In_ ULONG | Signature | ||
| ) |
Definition at line 2269 of file partlist.c.
Referenced by ResolveArcNameManually().
|
static |
Definition at line 107 of file partlist.c.
Referenced by AddDiskToList().
| PPARTENTRY NTAPI GetNextPartition | ( | IN PPARTLIST | List, |
| IN PPARTENTRY CurrentPart | OPTIONAL | ||
| ) |
Definition at line 2359 of file partlist.c.
Referenced by ScrollUpDownPartitionList().
| PPARTENTRY GetPartition | ( | _In_ PDISKENTRY | DiskEntry, |
| _In_ ULONG | PartitionNumber | ||
| ) |
Definition at line 2292 of file partlist.c.
Referenced by ResolveArcNameManually(), and SelectPartition().
|
static |
Counts the number of partitioned disk regions in a given partition list.
Definition at line 2573 of file partlist.c.
| PPARTENTRY NTAPI GetPrevPartition | ( | IN PPARTLIST | List, |
| IN PPARTENTRY CurrentPart | OPTIONAL | ||
| ) |
Definition at line 2452 of file partlist.c.
Referenced by ScrollUpDownPartitionList().
|
static |
Definition at line 1912 of file partlist.c.
Referenced by CreatePartitionList(), FindSupportedSystemPartition(), and SetActivePartition().
|
static |
Definition at line 772 of file partlist.c.
Referenced by CreatePartition().
|
static |
Definition at line 902 of file partlist.c.
Referenced by AddPartitionToDisk(), and WritePartitions().
|
static |
Definition at line 1001 of file partlist.c.
Referenced by AddPartitionToDisk(), and CreatePartition().
|
static |
Definition at line 923 of file partlist.c.
Referenced by AddPartitionToDisk(), and WritePartitionsToDisk().
|
static |
Definition at line 628 of file partlist.c.
Referenced by AddPartitionToDisk().
| BOOLEAN IsDiskSuperFloppy | ( | _In_ const DRIVE_LAYOUT_INFORMATION * | Layout, |
| _In_opt_ const ULONGLONG * | DiskSize | ||
| ) |
Definition at line 544 of file partlist.c.
Referenced by IsSuperFloppy().
| BOOLEAN IsDiskSuperFloppy2 | ( | _In_ const DISK_PARTITION_INFO * | DiskInfo, |
| _In_opt_ const ULONGLONG * | DiskSize, | ||
| _In_ const PARTITION_INFORMATION * | PartitionInfo | ||
| ) |
Definition at line 493 of file partlist.c.
Referenced by InstallBootManagerAndBootEntries(), IsDiskSuperFloppy(), and IsDiskSuperFloppyEx().
| BOOLEAN IsDiskSuperFloppyEx | ( | _In_ const DRIVE_LAYOUT_INFORMATION_EX * | LayoutEx, |
| _In_opt_ const ULONGLONG * | DiskSize | ||
| ) |
Definition at line 565 of file partlist.c.
|
inlinestatic |
Definition at line 2548 of file partlist.c.
Referenced by UpdateDiskLayout(), and UpdateMbrDiskLayout().
| BOOLEAN IsPartitionActive | ( | IN PPARTENTRY | PartEntry | ) |
Definition at line 1962 of file partlist.c.
Referenced by GetActiveDiskPartition(), SelectPartitionPage(), and SetActivePartition().
|
inlinestatic |
Definition at line 2557 of file partlist.c.
Referenced by UpdateDiskLayout(), and UpdateMbrDiskLayout().
| BOOLEAN IsSuperFloppy | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 602 of file partlist.c.
Referenced by AddDiskToList(), InstallBootManagerAndBootEntries(), InstallBootManagerAndBootEntriesWorker(), MBRPartitionCreateChecks(), and xHalIoWritePartitionTable().
|
static |
Definition at line 3212 of file partlist.c.
Referenced by FindSupportedSystemPartition().
|
static |
Definition at line 2892 of file partlist.c.
Referenced by PartitionCreateChecks().
| ERROR_NUMBER NTAPI PartitionCreateChecks | ( | _In_ PPARTENTRY | PartEntry, |
| _In_opt_ ULONGLONG | SizeBytes, | ||
| _In_opt_ ULONG_PTR | PartitionInfo | ||
| ) |
Definition at line 2946 of file partlist.c.
Referenced by CreatePartition(), DriveDlgProc(), and SelectPartitionPage().
|
static |
Definition at line 2602 of file partlist.c.
Referenced by UpdateDiskLayout(), and UpdateMbrDiskLayout().
Definition at line 97 of file partlist.c.
Referenced by CreatePartitionPage(), DriveDlgProc(), IsMediumLargeEnough(), PrettifySize1(), PrettifySize2(), PrintSize(), and ShowFileSystemInfo().
|
static |
Definition at line 1150 of file partlist.c.
Referenced by AddDiskToList().
| PPARTENTRY SelectPartition | ( | _In_ PPARTLIST | List, |
| _In_ ULONG | DiskNumber, | ||
| _In_ ULONG | PartitionNumber | ||
| ) |
Definition at line 2333 of file partlist.c.
Referenced by EnumerateInstallations(), and SelectPartitionPage().
| BOOLEAN SetActivePartition | ( | IN PPARTLIST | List, |
| IN PPARTENTRY | PartEntry, | ||
| IN PPARTENTRY OldActivePart | OPTIONAL | ||
| ) |
Definition at line 3603 of file partlist.c.
Referenced by InitSystemPartition().
|
static |
Definition at line 1347 of file partlist.c.
Referenced by UpdateDiskSignatures().
| VOID SetMBRPartitionType | ( | IN PPARTENTRY | PartEntry, |
| IN UCHAR | PartitionType | ||
| ) |
Definition at line 3991 of file partlist.c.
Referenced by FormatPartition().
Assign a "\DosDevices\#:" mount point drive letter to a disk partition or volume, specified by a given disk signature and starting partition offset.
Definition at line 3902 of file partlist.c.
Referenced by SetMountedDeviceValues().
Definition at line 3967 of file partlist.c.
Referenced by UpdateRegistry().
|
static |
Definition at line 282 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
|
static |
Definition at line 2654 of file partlist.c.
Referenced by CreatePartition(), and DeletePartition().
Definition at line 1409 of file partlist.c.
Referenced by CreatePartitionList().
Definition at line 1439 of file partlist.c.
Referenced by CreatePartitionList().
| NTSTATUS WritePartitions | ( | IN PDISKENTRY | DiskEntry | ) |
Definition at line 3667 of file partlist.c.
Referenced by FormatPartition(), and WritePartitionsToDisk().
Definition at line 3830 of file partlist.c.
Referenced by FsVolCommitOpsQueue().