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:
Hervé Poussineau
2006-09-15 17:04:18 +00:00
parent 4db2ab349a
commit dfda3eceff
3 changed files with 6 additions and 27 deletions
+2 -9
View File
@@ -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,
+2 -9
View File
@@ -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,
+2 -9
View File
@@ -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,