#include <ntos.h>
#include <ntdddisk.h>
#include <arc.h>
#include <arccodes.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | _tagDISKGEOM |
struct | _tagPARTITION |
struct | _tagREGION_DATA |
struct | _tagREGION_DESCRIPTOR |
Defines | |
#define | ASCI_NUL 0x00 |
#define | ASCI_BEL 0x07 |
#define | ASCI_BS 0x08 |
#define | ASCI_HT 0x09 |
#define | ASCI_LF 0x0A |
#define | ASCI_VT 0x0B |
#define | ASCI_FF 0x0C |
#define | ASCI_CR 0x0D |
#define | ASCI_CSI 0x9B |
#define | ASCI_ESC 0x1B |
#define | ASCI_SYSRQ 0x80 |
#define | EBADSYNTAX EMAXIMUM |
#define | MAX_COMPONENTS 20 |
#define | INVALID_TOKEN_TYPE ~0L |
#define | INVALID_TOKEN_VALUE ~1L |
#define | AlClearScreen() AlPrint("%c2J", ASCI_CSI) |
#define | AlClearLine() AlPrint("%c2K", ASCI_CSI) |
#define | AlSetScreenColor(FgColor, BgColor) |
#define | AlSetScreenAttributes(HighIntensity, Underscored, ReverseVideo) |
#define | AlSetPosition(Row, Column) AlPrint("%c%d;%dH", ASCI_CSI, Row, Column) |
#define | AllocateMemory(size) AlAllocateHeap(size) |
#define | ReallocateMemory(block, size) AlReallocateHeap(block,size) |
#define | FreeMemory(block) AlDeallocateHeap(block) |
#define | OK_STATUS ESUCCESS |
#define | RETURN_OUT_OF_MEMORY return(ENOMEM) |
#define | LOWPART(x) ((x).LowPart) |
#define | ONE_MEG (1024*1024) |
#define | ENTRIES_PER_BOOTSECTOR 4 |
#define | ASRT(x) |
#define | GetAllDiskRegions(disk, regions, count) GetDiskRegions(disk,TRUE,TRUE,TRUE,TRUE,regions,count) |
#define | GetFreeDiskRegions(disk, regions, count) GetDiskRegions(disk,FALSE,TRUE,TRUE,TRUE,regions,count) |
#define | GetUsedDiskRegions(disk, regions, count) GetDiskRegions(disk,TRUE,FALSE,TRUE,TRUE,regions,count) |
#define | GetPrimaryDiskRegions(disk, regions, count) GetDiskRegions(disk,TRUE,TRUE,TRUE,FALSE,regions,count) |
#define | GetLogicalDiskRegions(disk, regions, count) GetDiskRegions(disk,TRUE,TRUE,FALSE,TRUE,regions,count) |
#define | GetUsedPrimaryDiskRegions(disk, regions, count) GetDiskRegions(disk,TRUE,FALSE,TRUE,FALSE,regions,count) |
#define | GetUsedLogicalDiskRegions(disk, regions, count) GetDiskRegions(disk,TRUE,FALSE,FALSE,TRUE,regions,count) |
#define | GetFreePrimaryDiskRegions(disk, regions, count) GetDiskRegions(disk,FALSE,TRUE,TRUE,FALSE,regions,count) |
#define | GetFreeLogicalDiskRegions(disk, regions, count) GetDiskRegions(disk,FALSE,TRUE,FALSE,TRUE,regions,count) |
#define | MAXIMUM_ENVIRONMENT_VALUE 256 |
Typedefs | |
typedef enum _ADAPTER_TYPES | ADAPTER_TYPES |
typedef enum _CONTROLLER_TYPES | CONTROLLER_TYPES |
typedef enum _PERIPHERAL_TYPES | PERIPHERAL_TYPES |
typedef enum _TOKEN_TYPES | TOKEN_TYPES |
typedef _tagDISKGEOM | DISKGEOM |
typedef _tagDISKGEOM * | PDISKGEOM |
typedef _tagPARTITION | PARTITION |
typedef _tagPARTITION * | PPARTITION |
typedef _tagREGION_DATA | REGION_DATA |
typedef _tagREGION_DATA * | PREGION_DATA |
typedef _tagREGION_DESCRIPTOR | REGION_DESCRIPTOR |
typedef _tagREGION_DESCRIPTOR * | PREGION_DESCRIPTOR |
typedef enum _BOOT_VARIABLES | BOOT_VARIABLE |
Enumerations | |
enum | _ADAPTER_TYPES { AdapterEisa, AdapterScsi, AdapterMulti, AdapterMaximum } |
enum | _CONTROLLER_TYPES { ControllerDisk, ControllerCdrom, ControllerMaximum } |
enum | _PERIPHERAL_TYPES { PeripheralRigidDisk, PeripheralFloppyDisk, PeripheralMaximum } |
enum | _TOKEN_TYPES { AdaptType, ControllerType, PeripheralType } |
enum | REGION_TYPE { REGION_PRIMARY, REGION_EXTENDED, REGION_LOGICAL } |
enum | { SYSID_UNUSED = 0, SYSID_EXTENDED = 5, SYSID_BIGFAT = 6, SYSID_IFS = 7 } |
enum | _BOOT_VARIABLES { LoadIdentifierVariable, SystemPartitionVariable, OsLoaderVariable, OsLoadPartitionVariable, OsLoadFilenameVariable, OsLoadOptionsVariable, MaximumBootVariable } |
Functions | |
ARC_STATUS | AlGetEnvVarComponents (IN PCHAR EnvValue, OUT PCHAR **EnvVarComponents, OUT PULONG PNumComponents) |
ARC_STATUS | AlFreeEnvVarComponents (IN PCHAR *EnvVarComponents) |
BOOLEAN | AlFindNextMatchComponent (IN PCHAR EnvValue, IN PCHAR MatchValue, IN ULONG StartComponent, OUT PULONG MatchComponent OPTIONAL) |
ARC_STATUS | AlAddSystemPartition (IN PCHAR NewSystemPartition) |
ARC_STATUS | AlMemoryInitialize (ULONG StackPages, ULONG HeapPages) |
PVOID | AlAllocateHeap (IN ULONG Size) |
PVOID | AlDeallocateHeap (IN PVOID HeapAddress) |
PVOID | AlReallocateHeap (IN PVOID HeapAddress, IN ULONG NewSize) |
BOOLEAN | AlValidateHeap (IN BOOLEAN DumpHeap) |
BOOLEAN | AlInitializeMenuPackage (VOID) |
BOOLEAN | AlNewMenu (PVOID *MenuID) |
VOID | AlFreeMenu (PVOID MenuID) |
BOOLEAN | AlAddMenuItem (PVOID MenuID, PCHAR Text, ULONG AssociatedData, ULONG Attributes) |
BOOLEAN | AlAddMenuItems (PVOID MenuID, PCHAR Text[], ULONG ItemCount) |
BOOLEAN | AlDisplayMenu (PVOID MenuID, BOOLEAN PrintOnly, ULONG AssociatedDataOfDefaultChoice, ULONG *AssociatedDataOfChoice, ULONG Row, PCHAR MenuName) |
ULONG | AlGetMenuNumberItems (PVOID MenuID) |
ULONG | AlGetMenuAssociatedData (PVOID MenuID, ULONG n) |
ARC_STATUS | AlGetMenuSelection (IN PCHAR szTitle, IN PCHAR *rgszSelections, IN ULONG crgsz, IN ULONG crow, IN ULONG irgszDefault, OUT PULONG pirgsz, OUT PCHAR *pszSelection) |
VOID | AlWaitKey (PCHAR Prompt) |
VOID | vAlStatusMsg (IN ULONG Row, IN BOOLEAN Error, IN PCHAR FormatString, IN va_list ArgumentList) |
VOID | AlStatusMsg (IN ULONG TopRow, IN ULONG BottomRow, IN BOOLEAN Error, IN PCHAR FormatString,...) |
VOID | AlStatusMsgNoWait (IN ULONG TopRow, IN ULONG BottomRow, IN BOOLEAN Error, IN PCHAR FormatString,...) |
VOID | AlClearStatusArea (IN ULONG TopRow, IN ULONG BottomRow) |
PCHAR | AlStrDup (IN PCHAR szString) |
PCHAR | AlCombinePaths (IN PCHAR szPath1, IN PCHAR szPath2) |
VOID | AlFreeArray (IN BOOLEAN fFreeArray, IN PCHAR *rgsz, IN ULONG csz) |
ARC_STATUS | AlGetBase (IN PCHAR szPath, OUT PCHAR *pszBase) |
PCHAR | AlGetNextArcNameToken (IN PCHAR TokenString, OUT PCHAR OutputToken, OUT PULONG UnitNumber) |
ULONG | AlMatchArcNameToken (IN PCHAR TokenValue, IN TOKEN_TYPES TokenType) |
ARC_STATUS | FdiskInitialize (VOID) |
VOID | FdiskCleanUp (VOID) |
VOID | ConfigureSystemPartitions (VOID) |
VOID | ConfigureOSPartitions (VOID) |
ULONG | AlPrint (PCHAR Format,...) |
BOOLEAN | AlGetString (OUT PCHAR String, IN ULONG StringLength) |
ULONG | SIZEMB (IN LARGE_INTEGER ByteCount) |
ARC_STATUS | FmtIsFatPartition (IN ULONG PartitionId, IN ULONG SectorSize, OUT PBOOLEAN IsFatPartition) |
ARC_STATUS | FmtIsFat (IN PCHAR PartitionPath, OUT PBOOLEAN IsFatPartition) |
ARC_STATUS | FmtFatFormat (IN PCHAR PartitionPath, IN ULONG HiddenSectorCount) |
ARC_STATUS | FmtQueryFatPartitionList (OUT PCHAR **FatPartitionList, OUT PULONG ListLength) |
ARC_STATUS | FmtFreeFatPartitionList (IN OUT PCHAR *FatPartitionList, IN ULONG ListLength) |
ARC_STATUS | LowOpenDisk (IN PCHAR DevicePath, OUT PULONG DiskId) |
ARC_STATUS | LowCloseDisk (IN ULONG DiskId) |
ARC_STATUS | LowGetDriveGeometry (IN PCHAR DevicePath, OUT PULONG TotalSectorCount, OUT PULONG SectorSize, OUT PULONG SectorsPerTrack, OUT PULONG Heads) |
ARC_STATUS | LowGetPartitionGeometry (IN PCHAR PartitionPath, OUT PULONG TotalSectorCount, OUT PULONG SectorSize, OUT PULONG SectorsPerTrack, OUT PULONG Heads) |
ARC_STATUS | LowReadSectors (IN ULONG VolumeId, IN ULONG SectorSize, IN ULONG StartingSector, IN ULONG NumberOfSectors, OUT PVOID Buffer) |
ARC_STATUS | LowWriteSectors (IN ULONG VolumeId, IN ULONG SectorSize, IN ULONG StartingSector, IN ULONG NumberOfSectors, IN PVOID Buffer) |
ARC_STATUS | LowQueryPathFromComponent (IN PCONFIGURATION_COMPONENT Component, OUT PCHAR *Path) |
ARC_STATUS | LowQueryComponentList (IN CONFIGURATION_CLASS *ConfigClass OPTIONAL, IN CONFIGURATION_TYPE *ConfigType OPTIONAL, OUT PCONFIGURATION_COMPONENT **ComponentList, OUT PULONG ListLength) |
ARC_STATUS | LowQueryPathList (IN CONFIGURATION_CLASS *ConfigClass OPTIONAL, IN CONFIGURATION_TYPE *ConfigType OPTIONAL, OUT PCHAR **PathList, OUT PULONG ListLength) |
ARC_STATUS | LowFreePathList (IN PCHAR *PathList, IN ULONG ListLength) |
ARC_STATUS | LowQueryFdiskPathList (OUT PCHAR **PathList, OUT PULONG ListLength) |
ARC_STATUS | LowFreeFdiskPathList (IN OUT PCHAR *PathList, IN ULONG ListLength) |
ARC_STATUS | LowGetDiskLayout (IN PCHAR Path, OUT PDRIVE_LAYOUT_INFORMATION *DriveLayout) |
ARC_STATUS | LowSetDiskLayout (IN PCHAR Path, IN PDRIVE_LAYOUT_INFORMATION DriveLayout) |
ULONG | GetDiskCount (VOID) |
PCHAR | GetDiskName (ULONG Disk) |
ULONG | DiskSizeMB (IN ULONG Disk) |
ARC_STATUS | GetDiskRegions (IN ULONG Disk, IN BOOLEAN WantUsedRegions, IN BOOLEAN WantFreeRegions, IN BOOLEAN WantPrimaryRegions, IN BOOLEAN WantLogicalRegions, OUT PREGION_DESCRIPTOR *Region, OUT ULONG *RegionCount) |
VOID | FreeRegionArray (IN PREGION_DESCRIPTOR Region, IN ULONG RegionCount) |
ARC_STATUS | IsAnyCreationAllowed (IN ULONG Disk, IN BOOLEAN AllowMultiplePrimaries, OUT PBOOLEAN AnyAllowed, OUT PBOOLEAN PrimaryAllowed, OUT PBOOLEAN ExtendedAllowed, OUT PBOOLEAN LogicalAllowed) |
ARC_STATUS | IsCreationOfPrimaryAllowed (IN ULONG Disk, IN BOOLEAN AllowMultiplePrimaries, OUT PBOOLEAN Allowed) |
ARC_STATUS | IsCreationOfExtendedAllowed (IN ULONG Disk, OUT PBOOLEAN Allowed) |
ARC_STATUS | IsCreationOfLogicalAllowed (IN ULONG Disk, OUT PBOOLEAN Allowed) |
ARC_STATUS | DoesAnyPartitionExist (IN ULONG Disk, OUT PBOOLEAN AnyExists, OUT PBOOLEAN PrimaryExists, OUT PBOOLEAN ExtendedExists, OUT PBOOLEAN LogicalExists) |
ARC_STATUS | DoesAnyPrimaryExist (IN ULONG Disk, OUT PBOOLEAN Exists) |
ARC_STATUS | DoesExtendedExist (IN ULONG Disk, OUT PBOOLEAN Exists) |
ARC_STATUS | DoesAnyLogicalExist (IN ULONG Disk, OUT PBOOLEAN Exists) |
BOOLEAN | IsExtended (IN UCHAR SysID) |
VOID | SetPartitionActiveFlag (IN PREGION_DESCRIPTOR Region, IN UCHAR value) |
ARC_STATUS | CreatePartition (IN PREGION_DESCRIPTOR Region, IN ULONG CreationSizeMB, IN REGION_TYPE Type) |
ARC_STATUS | CreatePartitionEx (IN PREGION_DESCRIPTOR Region, IN LARGE_INTEGER MinimumSize, IN ULONG CreationSizeMB, IN REGION_TYPE Type, IN UCHAR SysId) |
ARC_STATUS | DeletePartition (IN PREGION_DESCRIPTOR Region) |
ULONG | GetHiddenSectorCount (ULONG Disk, ULONG Partition) |
VOID | SetSysID (IN ULONG Disk, IN ULONG Partition, IN UCHAR SysID) |
VOID | SetSysID2 (IN PREGION_DESCRIPTOR Region, IN UCHAR SysID) |
PCHAR | GetSysIDName (UCHAR SysID) |
ARC_STATUS | CommitPartitionChanges (IN ULONG Disk) |
BOOLEAN | HavePartitionsBeenChanged (IN ULONG Disk) |
VOID | FdMarkDiskDirty (IN ULONG Disk) |
VOID | FdSetPersistentData (IN PREGION_DESCRIPTOR Region, IN ULONG Data) |
ULONG | FdGetMinimumSizeMB (IN ULONG Disk) |
ULONG | FdGetMaximumSizeMB (IN PREGION_DESCRIPTOR Region, IN REGION_TYPE CreationType) |
LARGE_INTEGER | FdGetExactSize (IN PREGION_DESCRIPTOR Region, IN BOOLEAN ForExtended) |
LARGE_INTEGER | FdGetExactOffset (IN PREGION_DESCRIPTOR Region) |
BOOLEAN | FdCrosses1024Cylinder (IN PREGION_DESCRIPTOR Region, IN ULONG CreationSizeMB, IN REGION_TYPE RegionType) |
ULONG | FdGetDiskSignature (IN ULONG Disk) |
VOID | FdSetDiskSignature (IN ULONG Disk, IN ULONG Signature) |
BOOLEAN | IsDiskOffLine (IN ULONG Disk) |
VOID | JzDeleteVariableSegment (PCHAR VariableName, ULONG Selection) |
Variables | |
char | MSGMARGIN [] |
PCHAR | BootString [] |
|
Definition at line 302 of file arcinst.h. Referenced by AlClearStatusArea(). |
|
Definition at line 299 of file arcinst.h. Referenced by main(). |
|
Definition at line 330 of file arcinst.h. Referenced by AddRegionEntry(), AllocatePartitionStructure(), FdiskInitialize(), FmtFatFormat(), FmtIsFatPartition(), FmtQueryFatPartitionList(), FmtVerifySectors(), GetDiskRegions(), LowQueryComponentList(), LowQueryPathFromComponent(), LowQueryPathList(), WriteDriveLayout(), and ZapSector(). |
|
Definition at line 321 of file arcinst.h. Referenced by AlClearStatusArea(), CommonMenuDisplay(), main(), MarkLine(), and vAlStatusMsg(). |
|
Value: Definition at line 309 of file arcinst.h. Referenced by CommonMenuDisplay(), MarkLine(), and vAlStatusMsg(). |
|
Value: Definition at line 305 of file arcinst.h. Referenced by CommonMenuDisplay(), and vAlStatusMsg(). |
|
|
|
|
|
Definition at line 21 of file arcinst.h. Referenced by CommonMenuDisplay(). |
|
Definition at line 22 of file arcinst.h. Referenced by CommonMenuDisplay(), and GetChar(). |
|
Definition at line 23 of file arcinst.h. Referenced by AlGetString(), CommonMenuDisplay(), and Confirm(). |
|
|
|
|
|
Definition at line 18 of file arcinst.h. Referenced by CommonMenuDisplay(). |
|
|
|
|
|
|
|
|
Definition at line 29 of file arcinst.h. Referenced by AlGetBase(). |
|
Definition at line 346 of file arcinst.h. Referenced by InitializeLogicalVolumeList(), InitializePrimaryPartitionList(), IsCreationOfExtendedAllowed(), IsCreationOfPrimaryAllowed(), LowSetDiskLayout(), MakeBootRec(), WriteDriveLayout(), and ZeroPartitionTable(). |
|
Definition at line 332 of file arcinst.h. Referenced by FdiskCleanUp(), FmtFatFormat(), FmtIsFatPartition(), FmtQueryFatPartitionList(), FmtVerifySectors(), FreeLinkedPartitionList(), FreeRegionArray(), InitializePartitionLists(), LowFreePathList(), LowQueryPathList(), MergeFreePartitions(), WriteDriveLayout(), and ZapSector(). |
|
|
|
Definition at line 599 of file arcinst.h. Referenced by DoPartitionCreate(). |
|
Definition at line 620 of file arcinst.h. Referenced by DoPartitionCreate(). |
|
|
|
Definition at line 608 of file arcinst.h. Referenced by IsCreationOfLogicalAllowed(). |
|
Definition at line 605 of file arcinst.h. Referenced by IsCreationOfExtendedAllowed(), and IsCreationOfPrimaryAllowed(). |
|
Definition at line 602 of file arcinst.h. Referenced by DoMakePartitionSystemPartition(), and DoPartitionDelete(). |
|
Definition at line 614 of file arcinst.h. Referenced by DoesAnyLogicalExist(). |
|
Definition at line 611 of file arcinst.h. Referenced by DoesAnyPrimaryExist(), and DoesExtendedExist(). |
|
Definition at line 248 of file arcinst.h. Referenced by AlMatchArcNamToken(). |
|
Definition at line 249 of file arcinst.h. Referenced by AlMatchArcNamToken(). |
|
Definition at line 337 of file arcinst.h. Referenced by GetHiddenSectorCount(), and ZapSector(). |
|
Definition at line 31 of file arcinst.h. Referenced by AlGetEnvVarComponents(). |
|
Definition at line 827 of file arcinst.h. Referenced by AlAddSystemPartition(), JzDeleteVariableSegment(), and NtQuerySystemEnvironmentValue(). |
|
|
Definition at line 339 of file arcinst.h. Referenced by DetermineCreateSizeAndOffset(), and SIZEMB(). |
|
Definition at line 331 of file arcinst.h. Referenced by AddRegionEntry(), and FmtVerifySectors(). |
|
Definition at line 335 of file arcinst.h. Referenced by CreatePartitionEx(), FdiskInitialize(), GetRegions(), InitializeFreeSpace(), InitializeLogicalVolumeList(), InitializePrimaryPartitionList(), WriteDriveLayout(), and ZapSector(). |
|
|
|
|
|
|
|
|
|
Referenced by UdfInitializePcb(). |
|
|
|
|
|
Referenced by FdiskInitialize(), and UdfDeletePcb(). |
|
|
|
Referenced by DoPartitionCreate(). |
|
|
|
|
|
|
|
Definition at line 550 of file arcinst.h.
|
|
Definition at line 211 of file arcinst.h.
|
|
Definition at line 809 of file arcinst.h.
|
|
Definition at line 221 of file arcinst.h.
|
|
Definition at line 230 of file arcinst.h.
|
|
Definition at line 239 of file arcinst.h.
|
|
Definition at line 545 of file arcinst.h.
|
|
Definition at line 684 of file almisc.c. References AlAllocateHeap(), AlReallocateHeap(), _tagMENUITEM::AssociatedData, FALSE, _tagMENUCOOKIE::ItemCount, _tagMENUCOOKIE::Items, NULL, PMENUCOOKIE, PMENUITEM, strlen(), _tagMENUITEM::Text, and TRUE. Referenced by AlAddMenuItems(), ChooseDisk(), DoMakePartitionSystemPartition(), DoPartitionCreate(), and DoPartitionDelete().
|
|
Definition at line 720 of file almisc.c. References AlAddMenuItem(), AlGetMenuNumberItems(), FALSE, and TRUE. Referenced by AlGetMenuSelection(), ConfigureSystemPartitions(), and main().
|
|
Definition at line 424 of file almisc.c. References ARC_STATUS, ArcGetEnvironmentVariable, ArcSetEnvironmentVariable, CHAR, E2BIG, ESUCCESS, MAXIMUM_ENVIRONMENT_VALUE, NULL, Status, and strlen(). Referenced by DoMakePartitionSystemPartition(), and DoSystemPartitionCreate().
|
|
Definition at line 1113 of file memory.c. References AlRtAllocateHeap(), HeapHandle, and Size. Referenced by AlAddMenuItem(), AlCombinePaths(), AlGetEnvVarComponents(), AlNewMenu(), AlStrDup(), LowGetDiskLayout(), and LowSetDiskLayout().
|
|
Definition at line 1010 of file almisc.c. References AlClearLine, and AlSetPosition. Referenced by AlStatusMsg(), AlStatusMsgNoWait(), Confirm(), DoPartitionCreate(), PrintError(), PrintErrorMsg(), and PrintMsg().
|
|
Definition at line 1150 of file almisc.c. References AlAllocateHeap(), NULL, and strlen().
|
|
Definition at line 1134 of file memory.c. References AlRtFreeHeap(), and HeapHandle. Referenced by AlFreeArray(), AlFreeEnvVarComponents(), AlFreeMenu(), AlGetBase(), AlpFreeComponents(), LowGetDiskLayout(), and LowSetDiskLayout().
|
|
Definition at line 740 of file almisc.c. References CommonMenuDisplay(), FALSE, NULL, and PMENUCOOKIE. Referenced by AlGetMenuSelection(), ChooseDisk(), ConfigureSystemPartitions(), DoMakePartitionSystemPartition(), DoPartitionCreate(), DoPartitionDelete(), and main().
|
|
Definition at line 361 of file almisc.c. References AlFreeEnvVarComponents(), AlGetEnvVarComponents(), AlpMatchComponent(), ARC_STATUS, ESUCCESS, FALSE, Index, Status, and TRUE. Referenced by IsBootSelectionPartition().
|
|
Definition at line 1190 of file almisc.c. References AlDeallocateHeap().
|
|
Definition at line 209 of file almisc.c. References AlDeallocateHeap(), AlpFreeComponents(), ARC_STATUS, EACCES, ESUCCESS, NULL, and Status. Referenced by AlFindNextMatchComponent().
|
|
Definition at line 664 of file almisc.c. References AlDeallocateHeap(), _tagMENUCOOKIE::ItemCount, _tagMENUCOOKIE::Items, NULL, PMENUCOOKIE, and _tagMENUITEM::Text. Referenced by AlGetMenuSelection(), ConfigureSystemPartitions(), DoMakePartitionSystemPartition(), DoPartitionCreate(), and DoPartitionDelete().
|
|
Definition at line 1244 of file almisc.c. References AlDeallocateHeap(), AlStrDup(), EBADSYNTAX, ENOMEM, ESUCCESS, and NULL.
|
|
Definition at line 26 of file almisc.c. References AlAllocateHeap(), AlpFreeComponents(), EACCES, ENOMEM, ESUCCESS, MAX_COMPONENTS, and NULL. Referenced by AlFindNextMatchComponent().
|
|
Definition at line 638 of file almisc.c. References n, and PMENUCOOKIE.
|
|
Definition at line 629 of file almisc.c. References PMENUCOOKIE. Referenced by AlAddMenuItems().
|
|
Definition at line 1025 of file almisc.c. References AlAddMenuItems(), AlDisplayMenu(), AlFreeMenu(), AlNewMenu(), ENOMEM, ESUCCESS, FALSE, NULL, and szTitle.
|
|
|
|
Definition at line 1508 of file almisc.c. References ARC_CONSOLE_INPUT, ARC_CONSOLE_OUTPUT, ArcRead, ArcWrite, ASCI_ESC, Buffer, c, CHAR, Count, ESUCCESS, FALSE, String, StringLength(), and TRUE. Referenced by AlWaitKey(), CommonMenuDisplay(), and DoPartitionCreate().
|
|
Definition at line 620 of file almisc.c. References TRUE. Referenced by main().
|
|
|
|
Definition at line 991 of file memory.c. References AlHeapFree, AlHeapLimit, AlRtCreateHeap(), ArcGetMemoryDescriptor, _MEMORY_DESCRIPTOR::BasePage, ENOMEM, ESUCCESS, HEAP_ZERO_EXTRA_MEMORY, HeapHandle, KSEG0_BASE, MemoryFree, MemoryLoadedProgram, _MEMORY_DESCRIPTOR::MemoryType, NULL, PAGE_SHIFT, _MEMORY_DESCRIPTOR::PageCount, and PMEMORY_DESCRIPTOR. Referenced by main().
|
|
Definition at line 647 of file almisc.c. References AlAllocateHeap(), FALSE, _tagMENUCOOKIE::ItemCount, _tagMENUCOOKIE::Items, NULL, PMENUCOOKIE, and TRUE. Referenced by AlGetMenuSelection(), ChooseDisk(), ConfigureSystemPartitions(), DoMakePartitionSystemPartition(), DoPartitionCreate(), DoPartitionDelete(), and main().
|
|
Definition at line 1483 of file almisc.c. References ARC_CONSOLE_OUTPUT, ArcWrite, Buffer, and Count. Referenced by AlRtAllocateHeap(), AlRtFreeHeap(), AlRtReAllocateHeap(), AlWaitKey(), CommonMenuDisplay(), Confirm(), DoPartitionCreate(), FdiskInitialize(), FmtVerifySectors(), main(), MarkLine(), and vAlStatusMsg().
|
|
Definition at line 1153 of file memory.c. References AlRtReAllocateHeap(), and HeapHandle. Referenced by AlAddMenuItem(), and LowGetDiskLayout().
|
|
Definition at line 974 of file almisc.c. References AlClearStatusArea(), AlWaitKey(), Error, NULL, and vAlStatusMsg().
|
|
Definition at line 993 of file almisc.c. References AlClearStatusArea(), Error, and vAlStatusMsg(). Referenced by DoSystemPartitionCreate().
|
|
Definition at line 1113 of file almisc.c. References AlAllocateHeap(), NULL, and strlen(). Referenced by AlGetBase().
|
|
Definition at line 1174 of file memory.c. References AlRtValidateHeap(), and HeapHandle.
|
|
Definition at line 934 of file almisc.c. References AlGetString(), AlPrint(), and MSGMARGIN. Referenced by AlStatusMsg(), PrintError(), PrintErrorMsg(), and PrintMsg().
|
|
Definition at line 3063 of file fdengine.c. References ARC_STATUS, ASRT, ChangesMade, FALSE, HavePartitionsBeenChanged(), LogicalVolumes, _tagPARTITION::Next, OffLine, OK_STATUS, _tagPARTITION::OriginalPartitionNumber, _tagPARTITION::PartitionNumber, PrimaryPartitions, _tagPARTITION::Update, and WriteDriveLayout(). Referenced by 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 698 of file fdengine.c. References CreatePartitionEx(), REGION_EXTENDED, SYSID_BIGFAT, and SYSID_EXTENDED. Referenced by DoPartitionCreate().
|
|
Definition at line 549 of file fdengine.c. References AddPartitionToLinkedList(), AllocatePartitionStructure(), ASRT, ChangesMade, DetermineCreateSizeAndOffset(), _tagPARTITION::Disk, FALSE, _tagPARTITION::Length, LogicalVolumes, MergeFreePartitions(), NULL, _tagPARTITION::Offset, OK_STATUS, _tagREGION_DATA::Partition, PrimaryPartitions, _tagPARTITION::Recognized, REGION_EXTENDED, REGION_LOGICAL, RenumberPartitions(), RETURN_OUT_OF_MEMORY, _tagPARTITION::SysID, SYSID_UNUSED, TRUE, and _tagPARTITION::Update. Referenced by CreatePartition().
|
|
Definition at line 721 of file fdengine.c. References _tagPARTITION::Active, ASRT, ChangesMade, _tagPARTITION::Disk, FALSE, FreeLinkedPartitionList(), IsExtended(), IsInLogicalList(), IsInPartitionList(), LogicalVolumes, MergeFreePartitions(), OK_STATUS, _tagPARTITION::OriginalPartitionNumber, _tagREGION_DATA::Partition, PrimaryPartitions, REGION_LOGICAL, RenumberPartitions(), _tagPARTITION::SysID, SYSID_UNUSED, TRUE, and _tagPARTITION::Update. Referenced by DoPartitionDelete().
|
|
Definition at line 2011 of file fdengine.c. References DiskLengthBytes(), and SIZEMB().
|
|
|
|
Definition at line 2394 of file fdengine.c. References ARC_STATUS, DoesAnyLogicalExist(), DoesAnyPrimaryExist(), DoesExtendedExist(), and OK_STATUS. Referenced by DoPartitionDelete().
|
|
|
|
|
|
Definition at line 3324 of file fdengine.c. References _tagDISKGEOM::BytesPerCylinder, DetermineCreateSizeAndOffset(), DiskGeometryArray, End, Size, Start, and SYSID_UNUSED.
|
|
|
|
Definition at line 3281 of file fdengine.c. References _tagDISKGEOM::BytesPerTrack, DiskGeometryArray, Offset, REGION_LOGICAL, and SYSID_UNUSED.
|
|
Definition at line 3231 of file fdengine.c. References _tagREGION_DATA::AlignedRegionOffset, _tagREGION_DATA::AlignedRegionSize, _tagDISKGEOM::BytesPerCylinder, _tagDISKGEOM::BytesPerTrack, DiskGeometryArray, REGION_LOGICAL, and SYSID_UNUSED.
|
|
Definition at line 3203 of file fdengine.c. References _tagREGION_DATA::AlignedRegionOffset, _tagREGION_DATA::AlignedRegionSize, ASRT, _tagDISKGEOM::BytesPerCylinder, _tagDISKGEOM::BytesPerTrack, DiskGeometryArray, REGION_EXTENDED, REGION_PRIMARY, SIZEMB(), and SYSID_UNUSED.
|
|
Definition at line 3172 of file fdengine.c. References _tagDISKGEOM::BytesPerCylinder, DiskGeometryArray, max, and SIZEMB().
|
|
Definition at line 258 of file fdengine.c. References ChangesMade, CountOfDisks, DiskGeometryArray, DiskNames, FreeMemory, FreePartitionInfoLinkedLists(), LogicalVolumes, LowFreeFdiskPathList(), NULL, OffLine, and PrimaryPartitions.
|
|
Definition at line 183 of file fdengine.c. References AllocateMemory, AlPrint(), ARC_STATUS, ChangesMade, CheckIfDiskIsOffLine(), CountOfDisks, DiskGeometryArray, DiskNames, ENODEV, FALSE, GetGeometry(), InitializePartitionLists(), LogicalVolumes, LowQueryFdiskPathList(), NULL, OffLine, OK_STATUS, PPARTITION, PrimaryPartitions, and RETURN_OUT_OF_MEMORY. Referenced by main().
|
|
Definition at line 3152 of file fdengine.c. References ASRT, ChangesMade, OffLine, and TRUE.
|
|
|
|
Definition at line 3162 of file fdengine.c.
|
|
Definition at line 601 of file fmtexp.c. References AllocateMemory, ARC_STATUS, ArcClose, ArcGetTime, ArcOpen, ArcOpenReadWrite, ENOMEM, ESUCCESS, FmtFillFormatBuffer(), FmtVerifySectors(), FreeMemory, LowGetPartitionGeometry(), LowWriteSectors(), and NULL. Referenced by DoMakePartitionSystemPartition(), and DoSystemPartitionCreate().
|
|
Definition at line 919 of file fmtexp.c. References LowFreePathList().
|
|
Definition at line 93 of file fmtexp.c. References ARC_STATUS, ArcClose, ArcOpen, ArcOpenReadOnly, ESUCCESS, FmtIsFatPartition(), and LowGetPartitionGeometry(). Referenced by DoMakePartitionSystemPartition(), and FmtQueryFatPartitionList().
|
|
Definition at line 42 of file fmtexp.c. References AllocateMemory, ARC_STATUS, Buffer, ENOMEM, ESUCCESS, FreeMemory, LowReadSectors(), and SectorSize. Referenced by FmtIsFat().
|
|
Definition at line 724 of file fmtexp.c. References AllocateMemory, ARC_STATUS, ArcClose, ArcOpen, ArcOpenReadOnly, CHAR, CONFIGURATION_TYPE, DiskPeripheral, EIO, ENOMEM, ESUCCESS, FmtIsFat(), FreeMemory, LowFreePathList(), LowQueryPathList(), NULL, sprintf(), and strlen().
|
|
Definition at line 1013 of file fdengine.c. References FreeMemory. Referenced by DoesAnyLogicalExist(), DoesAnyPrimaryExist(), DoesExtendedExist(), DoMakePartitionSystemPartition(), DoPartitionCreate(), DoPartitionDelete(), IsCreationOfExtendedAllowed(), IsCreationOfLogicalAllowed(), and IsCreationOfPrimaryAllowed().
|
|
Definition at line 2587 of file fdengine.c. References CountOfDisks. Referenced by ChooseDisk(), and ConfigureSystemPartitions().
|
|
Definition at line 2615 of file fdengine.c. References DiskNames. Referenced by CheckIfDiskIsOffLine(), ChooseDisk(), DoMakePartitionSystemPartition(), DoPartitionCreate(), DoPartitionDelete(), DoSystemPartitionCreate(), IsBootSelectionPartition(), and ZapSector().
|
|
Definition at line 780 of file fdengine.c. References AllocateMemory, FALSE, GetRegions(), LogicalVolumes, OK_STATUS, PrimaryPartitions, REGION_LOGICAL, and REGION_PRIMARY.
|
|
|
|
Definition at line 2719 of file fdengine.c. References SysIDStrings. Referenced by DoMakePartitionSystemPartition(), and DoPartitionDelete().
|
|
Definition at line 3121 of file fdengine.c. References ASRT, ChangesMade, and OffLine. Referenced by CommitPartitionChanges().
|
|
Definition at line 2141 of file fdengine.c. References ARC_STATUS, IsCreationOfExtendedAllowed(), IsCreationOfLogicalAllowed(), IsCreationOfPrimaryAllowed(), and OK_STATUS. Referenced by DoPartitionCreate().
|
|
|
|
|
|
|
|
Definition at line 3389 of file fdengine.c. References OffLine.
|
|
Definition at line 2114 of file fdengine.c. References SYSID_EXTENDED. Referenced by DeletePartition(), DoesAnyPrimaryExist(), DoesExtendedExist(), DoMakePartitionSystemPartition(), DoPartitionDelete(), FindPartitionElement(), GetRegions(), InitializeLogicalVolumeList(), InitializePrimaryPartitionList(), IsCreationOfExtendedAllowed(), IsCreationOfPrimaryAllowed(), RenumberPartitions(), and WriteDriveLayout().
|
|
Definition at line 5 of file jzcrap.c. References ArcGetEnvironmentVariable, ArcSetEnvironmentVariable, CHAR, Count, FALSE, Index, MAXIMUM_ENVIRONMENT_VALUE, NULL, and TRUE. Referenced by DoPartitionDelete().
|
|
Definition at line 36 of file low.c. References ArcClose. Referenced by CheckIfDiskIsOffLine(), LowGetDiskLayout(), LowSetDiskLayout(), and ZapSector().
|
|
Definition at line 786 of file low.c. References LowFreePathList(). Referenced by FdiskCleanUp().
|
|
Definition at line 721 of file low.c. References ESUCCESS, and FreeMemory. Referenced by FmtFreeFatPartitionList(), FmtQueryFatPartitionList(), LowFreeFdiskPathList(), and LowQueryPathList().
|
|
Definition at line 812 of file low.c. References _PARTITION_DESCRIPTOR::ActiveFlag, AlAllocateHeap(), AlDeallocateHeap(), AlReallocateHeap(), ARC_STATUS, BOOT_RECORD_SIGNATURE, BOOT_SIGNATURE_OFFSET, dummy(), ENOMEM, ESUCCESS, FALSE, Handle, LowCloseDisk(), LowGetDriveGeometry(), LowOpenDisk(), LowReadSectors(), NULL, NUM_PARTITION_TABLE_ENTRIES, PARTITION_TABLE_OFFSET, _PARTITION_DESCRIPTOR::PartitionType, PLENGTH, PSTART, PUSHORT, SYSID_EXTENDED, SYSID_UNUSED, and TRUE. Referenced by InitializePartitionLists().
|
|
Definition at line 59 of file low.c. References Buffer, LowGetPartitionGeometry(), SectorSize, and sprintf(). Referenced by GetGeometry(), LowGetDiskLayout(), and LowSetDiskLayout().
|
|
Definition at line 76 of file low.c. References ARC_STATUS, ArcClose, ArcGetComponent, ArcGetConfigurationData, ArcGetFileInformation, ArcOpen, ArcOpenReadOnly, CHAR, _CONFIGURATION_COMPONENT::ConfigurationDataLength, E2BIG, EINVAL, _FILE_INFORMATION::EndingAddress, ESUCCESS, FILE_INFORMATION, NULL, SectorSize, and _FILE_INFORMATION::StartingAddress. Referenced by FmtFatFormat(), FmtIsFat(), and LowGetDriveGeometry().
|
|
Definition at line 6 of file low.c. References ArcOpen, ArcOpenReadWrite, and sprintf(). Referenced by CheckIfDiskIsOffLine(), LowGetDiskLayout(), LowSetDiskLayout(), and ZapSector().
|
|
Definition at line 595 of file low.c. References AllocateMemory, ARC_STATUS, ENOMEM, ESUCCESS, LowTraverseChildren(), and NULL. Referenced by LowQueryPathList().
|
|
Definition at line 756 of file low.c. References CONFIGURATION_TYPE, DiskPeripheral, LowQueryPathList(), and NULL. Referenced by FdiskInitialize().
|
|
Definition at line 486 of file low.c. References AlGetPathnameFromComponent(), AllocateMemory, ENOMEM, ESUCCESS, path, and strlen(). Referenced by LowQueryPathList().
|
|
Definition at line 651 of file low.c. References AllocateMemory, ARC_STATUS, ENOMEM, ESUCCESS, FreeMemory, LowFreePathList(), LowQueryComponentList(), LowQueryPathFromComponent(), and NULL. Referenced by FmtQueryFatPartitionList(), and LowQueryFdiskPathList().
|
|
Definition at line 212 of file low.c. References ARC_STATUS, ArcRead, ArcSeek, Buffer, c, EIO, ESUCCESS, MAX_TRANSFER, min, SectorSize, and SeekAbsolute. Referenced by FmtIsFatPartition(), FmtVerifySectors(), and LowGetDiskLayout().
|
|
Definition at line 1076 of file low.c. References AlAllocateHeap(), AlDeallocateHeap(), ARC_STATUS, ASRT, BOOT_RECORD_SIGNATURE, BOOT_SIGNATURE_OFFSET, CalculateCHSVals(), dummy(), ENOMEM, ENTRIES_PER_BOOTSECTOR, ESUCCESS, FALSE, Handle, LowCloseDisk(), LowGetDriveGeometry(), LowOpenDisk(), LowWriteSectors(), min, NULL, PARTITION_TABLE_OFFSET, _PARTITION_DESCRIPTOR::PartitionType, PUSHORT, SECCNT, SetPartitionTableEntry(), SYSID_EXTENDED, SYSID_UNUSED, TRUE, ZeroPartitionTable(), and ZeroPartitionTableEntry. Referenced by WriteDriveLayout().
|
|
Definition at line 281 of file low.c. References ARC_STATUS, ArcSeek, ArcWrite, Buffer, c, EIO, ESUCCESS, MAX_TRANSFER, min, SectorSize, and SeekAbsolute. Referenced by FmtFatFormat(), LowSetDiskLayout(), and ZapSector().
|
|
|
|
Definition at line 1366 of file fdengine.c. References ASRT, CHANGED_DONT_ZAP, ChangesMade, _tagPARTITION::Disk, FindPartitionElement(), _tagPARTITION::SysID, TRUE, and _tagPARTITION::Update. Referenced by DoMakePartitionSystemPartition(), and DoSystemPartitionCreate().
|
|
Definition at line 1409 of file fdengine.c. References CHANGED_DONT_ZAP, ChangesMade, _tagPARTITION::Disk, _tagPARTITION::SysID, TRUE, and _tagPARTITION::Update.
|
|
Definition at line 1972 of file fdengine.c. References ONE_MEG. Referenced by DiskSizeMB(), FdGetMaximumSizeMB(), FdGetMinimumSizeMB(), and GetRegions().
|
|
Definition at line 947 of file almisc.c. References AlPrint(), AlSetPosition, AlSetScreenAttributes, AlSetScreenColor, ARC_CONSOLE_OUTPUT, ArcWrite, Count, Error, MSGMARGIN, and text. Referenced by AlStatusMsg(), AlStatusMsgNoWait(), PrintError(), PrintErrorMsg(), and PrintMsg().
|
|
Definition at line 819 of file arcinst.h. Referenced by DoPartitionDelete(). |
|
Definition at line 297 of file arcinst.h. Referenced by AlWaitKey(), Confirm(), DoPartitionCreate(), FmtVerifySectors(), and vAlStatusMsg(). |