#include "precomp.h"
Go to the source code of this file.
Defines | |
#define | STATUS_ROW_TOP 13 |
#define | STATUS_ROW_BOTTOM 17 |
#define | MsgNoMem() AlStatusMsg(STATUS_ROW_TOP,STATUS_ROW_BOTTOM,TRUE,NOMEMMSG); |
#define | SYSPARTMENU_CREATE 0 |
#define | SYSPARTMENU_DELETE 1 |
#define | SYSPARTMENU_ADD 2 |
#define | SYSPARTMENU_EXIT 3 |
#define | MENU_ROW 4 |
Functions | |
PCHAR | AlGetNextArcNamToken (IN PCHAR TokenString, OUT PCHAR OutputToken, OUT PULONG UnitNumber) |
BOOLEAN | Confirm (PCHAR Warning) |
VOID | PrintErrorMsg (PCHAR FormatString,...) |
VOID | PrintMsg (PCHAR FormatString,...) |
BOOLEAN | IsBootSelectionPartition (PCHAR Variable, ULONG Disk, ULONG Partition, PULONG MatchNumber OPTIONAL) |
LONG | ChooseDisk (VOID) |
BOOLEAN | DoPartitionCreate (OUT PULONG DiskNo, OUT PULONG PartitionNo) |
VOID | DoPartitionDelete (VOID) |
VOID | DoSystemPartitionCreate (VOID) |
VOID | DoMakePartitionSystemPartition (VOID) |
VOID | ConfigureSystemPartitions (VOID) |
Variables | |
char | NOMEMMSG [] = "Insufficient memory" |
char | NOCNFMSG [] = "Unable to determine disk configuration (ARC status = %u)" |
char | NOFMTMSG [] = "Format failed (ARC status = %u)" |
char | DSKFLMSG [] = "Disk is full" |
char | NOCREMSG [] = "Could not create partition (ARC status = %u)" |
char | NODELMSG [] = "Could not delete partition (ARC status = %u)" |
char | ALREAMSG [] = "Partition is already a system partition" |
char | NOFILMSG [] = "Unable to determine filesystem on partition (ARC status = %u)" |
char | NOENVMSG [] = "Error (ARC status = %u) determining environment" |
char | NOEVAMSG [] = "Could not add partition to environment (ARC status = %u)" |
char | NOEVDMSG [] = "Could not remove partition from environment (ARC status = %u)" |
char | NOSYSMSG [] = "No system partitions defined" |
char | NOPARMSG [] = "No partitions on this disk" |
char | SYSPARTVAR [] = "SYSTEMPARTITION" |
char | OSLOADERVAR [] = "OSLOADER" |
char | OSLOADPARTVAR [] = "OSLOADPARTITION" |
PCHAR | SysPartMenu [] |
char | sprintfBuffer [256] |
|
Definition at line 69 of file partit.c. Referenced by ChooseDisk(), ConfigureSystemPartitions(), DoMakePartitionSystemPartition(), DoPartitionCreate(), and DoPartitionDelete(). |
|
Definition at line 56 of file partit.c. Referenced by ChooseDisk(), ConfigureSystemPartitions(), DoMakePartitionSystemPartition(), DoPartitionCreate(), and DoPartitionDelete(). |
|
Definition at line 36 of file partit.c. Referenced by Confirm(), DoPartitionCreate(), DoSystemPartitionCreate(), PrintErrorMsg(), and PrintMsg(). |
|
Definition at line 35 of file partit.c. Referenced by Confirm(), DoPartitionCreate(), DoSystemPartitionCreate(), PrintErrorMsg(), and PrintMsg(). |
|
Definition at line 66 of file partit.c. Referenced by ConfigureSystemPartitions(). |
|
Definition at line 64 of file partit.c. Referenced by ConfigureSystemPartitions(). |
|
Definition at line 65 of file partit.c. Referenced by ConfigureSystemPartitions(). |
|
Definition at line 67 of file partit.c. Referenced by ConfigureSystemPartitions(). |
|
Definition at line 1318 of file almisc.c. References NULL. Referenced by ChooseDisk().
|
|
Definition at line 149 of file partit.c. References AlAddMenuItem(), AlDisplayMenu(), AlGetNextArcNamToken(), AlNewMenu(), CHAR, FALSE, GetDiskCount(), GetDiskName(), MENU_ROW, MsgNoMem, NULL, sprintf(), sprintfBuffer, and Token. Referenced by DoMakePartitionSystemPartition(), DoPartitionCreate(), and DoPartitionDelete().
|
|
Definition at line 681 of file partit.c. References AlAddMenuItems(), AlDisplayMenu(), AlFreeMenu(), AlNewMenu(), DoMakePartitionSystemPartition(), DoPartitionDelete(), DoSystemPartitionCreate(), FALSE, GetDiskCount(), MENU_ROW, MsgNoMem, SysPartMenu, SYSPARTMENU_ADD, SYSPARTMENU_CREATE, SYSPARTMENU_DELETE, and SYSPARTMENU_EXIT. Referenced by main().
|
|
Definition at line 74 of file partit.c. References AlClearStatusArea(), AlPrint(), ARC_CONSOLE_INPUT, ArcRead, ASCI_ESC, c, Count, MSGMARGIN, STATUS_ROW_BOTTOM, and STATUS_ROW_TOP. Referenced by DoMakePartitionSystemPartition(), DoPartitionCreate(), and DoPartitionDelete().
|
|
Definition at line 573 of file partit.c. References AlAddMenuItem(), AlAddSystemPartition(), AlDisplayMenu(), AlFreeMenu(), AlNewMenu(), ALREAMSG, ARC_STATUS, ChooseDisk(), Confirm(), ESUCCESS, FALSE, FmtFatFormat(), FmtIsFat(), FreeRegionArray(), GetDiskName(), GetHiddenSectorCount(), GetSysIDName(), GetUsedDiskRegions, IsBootSelectionPartition(), IsExtended(), MENU_ROW, MsgNoMem, NOCNFMSG, NOEVAMSG, NOFILMSG, NOFMTMSG, NOPARMSG, NULL, _tagREGION_DESCRIPTOR::PartitionNumber, PrintErrorMsg(), PrintMsg(), SetSysID(), sprintf(), sprintfBuffer, SYSID_BIGFAT, and SYSPARTVAR. Referenced by ConfigureSystemPartitions().
|
|
Definition at line 224 of file partit.c. References AlAddMenuItem(), AlClearStatusArea(), AlDisplayMenu(), AlFreeMenu(), AlGetString(), AlNewMenu(), AlPrint(), ARC_STATUS, ArcGetEnvironmentVariable, ArcSetEnvironmentVariable, ChooseDisk(), CommitPartitionChanges(), Confirm(), CreatePartition(), DoesAnyPrimaryExist(), DSKFLMSG, ESUCCESS, FALSE, FreeRegionArray(), GetDiskName(), GetFreeDiskRegions, GetFreeLogicalDiskRegions, IsAnyCreationAllowed(), MENU_ROW, MSGMARGIN, MsgNoMem, NOCNFMSG, NOCREMSG, NOEVAMSG, NULL, _tagREGION_DESCRIPTOR::PartitionNumber, PREGION_DESCRIPTOR, PrintErrorMsg(), PrintMsg(), REGION_EXTENDED, REGION_LOGICAL, REGION_PRIMARY, _tagREGION_DESCRIPTOR::RegionType, _tagREGION_DESCRIPTOR::SizeMB, sprintf(), sprintfBuffer, STATUS_ROW_BOTTOM, STATUS_ROW_TOP, SYSPARTVAR, and TRUE. Referenced by DoSystemPartitionCreate().
|
|
Definition at line 409 of file partit.c. References AlAddMenuItem(), AlDisplayMenu(), AlFreeMenu(), AlNewMenu(), ARC_STATUS, ArcGetEnvironmentVariable, BootString, ChooseDisk(), CommitPartitionChanges(), Confirm(), DeletePartition(), DoesAnyPartitionExist(), ESUCCESS, FALSE, FreeRegionArray(), GetDiskName(), GetSysIDName(), GetUsedDiskRegions, Index, IsBootSelectionPartition(), IsExtended(), JzDeleteVariableSegment(), MaximumBootVariable, MENU_ROW, MsgNoMem, NOCNFMSG, NODELMSG, NULL, OSLOADPARTVAR, PrintErrorMsg(), PrintMsg(), REGION_LOGICAL, sprintf(), sprintfBuffer, SYSPARTVAR, SystemPartitionVariable, and TRUE. Referenced by ConfigureSystemPartitions().
|
|
Definition at line 542 of file partit.c. References AlAddSystemPartition(), AlStatusMsgNoWait(), ARC_STATUS, DoPartitionCreate(), ESUCCESS, FALSE, FmtFatFormat(), GetDiskName(), GetHiddenSectorCount(), NOEVAMSG, NOFMTMSG, PrintErrorMsg(), PrintMsg(), SetSysID(), sprintf(), sprintfBuffer, STATUS_ROW_BOTTOM, STATUS_ROW_TOP, and SYSID_BIGFAT. Referenced by ConfigureSystemPartitions().
|
|
Definition at line 129 of file partit.c. References AlFindNextMatchComponent(), ArcGetEnvironmentVariable, FALSE, GetDiskName(), NULL, sprintf(), and text. Referenced by DoMakePartitionSystemPartition(), and DoPartitionDelete().
|
|
Definition at line 93 of file partit.c. References AlClearStatusArea(), AlWaitKey(), NULL, STATUS_ROW_BOTTOM, STATUS_ROW_TOP, TRUE, and vAlStatusMsg(). Referenced by DoMakePartitionSystemPartition(), DoPartitionCreate(), DoPartitionDelete(), and DoSystemPartitionCreate().
|
|
Definition at line 111 of file partit.c. References AlClearStatusArea(), AlWaitKey(), FALSE, NULL, STATUS_ROW_BOTTOM, STATUS_ROW_TOP, and vAlStatusMsg(). Referenced by DoMakePartitionSystemPartition(), DoPartitionCreate(), DoPartitionDelete(), and DoSystemPartitionCreate().
|
|
Definition at line 44 of file partit.c. Referenced by DoMakePartitionSystemPartition(). |
|
Definition at line 41 of file partit.c. Referenced by DoPartitionCreate(). |
|
Definition at line 39 of file partit.c. Referenced by DoMakePartitionSystemPartition(), DoPartitionCreate(), and DoPartitionDelete(). |
|
Definition at line 42 of file partit.c. Referenced by DoPartitionCreate(). |
|
Definition at line 43 of file partit.c. Referenced by DoPartitionDelete(). |
|
|
|
Definition at line 47 of file partit.c. Referenced by DoMakePartitionSystemPartition(), DoPartitionCreate(), and DoSystemPartitionCreate(). |
|
|
|
Definition at line 45 of file partit.c. Referenced by DoMakePartitionSystemPartition(). |
|
Definition at line 40 of file partit.c. Referenced by DoMakePartitionSystemPartition(), and DoSystemPartitionCreate(). |
|
|
|
Definition at line 50 of file partit.c. Referenced by DoMakePartitionSystemPartition(). |
|
|
|
|
|
Definition at line 54 of file partit.c. Referenced by DoPartitionDelete(). |
|
Definition at line 71 of file partit.c. Referenced by ChooseDisk(), DoMakePartitionSystemPartition(), DoPartitionCreate(), DoPartitionDelete(), and DoSystemPartitionCreate(). |
|
Initial value:
Definition at line 58 of file partit.c. Referenced by ConfigureSystemPartitions(). |
|
Definition at line 52 of file partit.c. Referenced by DoMakePartitionSystemPartition(), DoPartitionCreate(), and DoPartitionDelete(). |