mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
Fix "normal" formatting, by removing differences between quick and normal formatting.
Normal formatting is quick formatting + fill sectors with 0 (not done yet) svn path=/trunk/; revision=24136
This commit is contained in:
@@ -338,15 +338,8 @@ Fat12Format (HANDLE FileHandle,
|
||||
DPRINT("BootSector.FATSectors = %hx\n", BootSector.FATSectors);
|
||||
|
||||
/* Init context data */
|
||||
if (QuickFormat)
|
||||
{
|
||||
Context->TotalSectorCount =
|
||||
1 + (BootSector.FATSectors * 2) + RootDirSectors;
|
||||
}
|
||||
else
|
||||
{
|
||||
Context->TotalSectorCount = SectorCount;
|
||||
}
|
||||
Context->TotalSectorCount =
|
||||
1 + (BootSector.FATSectors * 2) + RootDirSectors;
|
||||
|
||||
Status = Fat12WriteBootSector (FileHandle,
|
||||
&BootSector,
|
||||
|
||||
@@ -356,15 +356,8 @@ Fat16Format (HANDLE FileHandle,
|
||||
DPRINT("BootSector.FATSectors = %hu\n", BootSector.FATSectors);
|
||||
|
||||
/* Init context data */
|
||||
if (QuickFormat)
|
||||
{
|
||||
Context->TotalSectorCount =
|
||||
1 + (BootSector.FATSectors * 2) + RootDirSectors;
|
||||
}
|
||||
else
|
||||
{
|
||||
Context->TotalSectorCount = SectorCount;
|
||||
}
|
||||
Context->TotalSectorCount =
|
||||
1 + (BootSector.FATSectors * 2) + RootDirSectors;
|
||||
|
||||
Status = Fat16WriteBootSector (FileHandle,
|
||||
&BootSector,
|
||||
|
||||
@@ -429,15 +429,8 @@ Fat32Format (HANDLE FileHandle,
|
||||
DPRINT("FATSectors32 = %lu\n", BootSector.FATSectors32);
|
||||
|
||||
/* Init context data */
|
||||
if (QuickFormat)
|
||||
{
|
||||
Context->TotalSectorCount =
|
||||
2 + (BootSector.FATSectors32 * BootSector.FATCount) + BootSector.SectorsPerCluster;
|
||||
}
|
||||
else
|
||||
{
|
||||
Context->TotalSectorCount = BootSector.SectorsHuge;
|
||||
}
|
||||
Context->TotalSectorCount =
|
||||
2 + (BootSector.FATSectors32 * BootSector.FATCount) + BootSector.SectorsPerCluster;
|
||||
|
||||
Status = Fat32WriteBootSector (FileHandle,
|
||||
&BootSector,
|
||||
|
||||
Reference in New Issue
Block a user