From eef046d8a5a4c18d0f75026dd260d0004c61b408 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 25 Jul 2000 15:31:49 +0000 Subject: [PATCH] Fixed another num_clust related bug: The boundary between FAT12 / FAT16 See MS Knowledge Base Article Q65541 --- ChangeLog | 3 ++- stage2/fsys_fat.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 56d011b27..1194a701c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,7 +2,8 @@ * stage2/fsys_fat.c (fat_mount): Fixed calculation of num_clust. It was off by two, since the two non existing clusters 0 and 1 - were not taken into account. + were not taken into account. Also fixed the boundary between + FAT12 and FAT16. 2000-07-25 OKUJI Yoshinori diff --git a/stage2/fsys_fat.c b/stage2/fsys_fat.c index 22ef03de7..798b90d4c 100644 --- a/stage2/fsys_fat.c +++ b/stage2/fsys_fat.c @@ -124,7 +124,7 @@ fat_mount (void) return 0; FAT_SUPER->root_cluster = -1; - if (FAT_SUPER->num_clust > FAT_MAX_12BIT_CLUST) + if (FAT_SUPER->num_clust >= FAT_MAX_12BIT_CLUST) FAT_SUPER->fat_size = 4; else FAT_SUPER->fat_size = 3;