/*
* PROJECT: ReactOS DiskPart
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: base/system/diskpart/diskpart.c
+ * FILE: base/system/diskpart/partlist.c
* PURPOSE: Manages all the partitions of the OS in an interactive way
* PROGRAMMERS: Eric Kohl
*/
{
LastUnusedSectorCount = AlignDown(DiskEntry->SectorCount.QuadPart - (LastStartSector + LastSectorCount), DiskEntry->SectorAlignment);
- if (LastUnusedSectorCount >= (ULONGLONG)DiskEntry->CylinderAlignment)
+ if (LastUnusedSectorCount >= (ULONGLONG)DiskEntry->SectorAlignment)
{
DPRINT1("Unpartitioned disk space: %I64u sectors\n", LastUnusedSectorCount);
}
else
{
- DPRINT1("No matching aligment found! Partiton 1 starts at %I64u\n", DiskEntry->LayoutBuffer->PartitionEntry[0].StartingOffset.QuadPart);
+ DPRINT1("No matching aligment found! Partition 1 starts at %I64u\n", DiskEntry->LayoutBuffer->PartitionEntry[0].StartingOffset.QuadPart);
}
}
else
{
- DPRINT1("No valid partiton table found! Use megabyte (%lu Sectors) alignment!\n", (1024 * 1024) / DiskEntry->BytesPerSector);
+ DPRINT1("No valid partition table found! Use megabyte (%lu Sectors) alignment!\n", (1024 * 1024) / DiskEntry->BytesPerSector);
}
{
for (i = 0; i < 4; i++)
{
- AddPartitionToDisk(DiskNumber,
- DiskEntry,
- i,
- FALSE);
+ AddPartitionToDisk(DiskNumber, DiskEntry, i, FALSE);
}
for (i = 4; i < DiskEntry->LayoutBuffer->PartitionCount; i += 4)
{
- AddPartitionToDisk(DiskNumber,
- DiskEntry,
- i,
- TRUE);
+ AddPartitionToDisk(DiskNumber, DiskEntry, i, TRUE);
}
}
FILE_SYNCHRONOUS_IO_NONALERT);
if (NT_SUCCESS(Status))
{
- AddDiskToList(FileHandle,
- DiskNumber);
+ AddDiskToList(FileHandle, DiskNumber);
NtClose(FileHandle);
}
}
/* Release the bios disk info */
- while(!IsListEmpty(&BiosDiskListHead))
+ while (!IsListEmpty(&BiosDiskListHead))
{
Entry = RemoveHeadList(&BiosDiskListHead);
BiosDiskEntry = CONTAINING_RECORD(Entry, BIOSDISKENTRY, ListEntry);