From 06d5ed7ece1e33a6bcbd47b4bd5a21e17801f09e Mon Sep 17 00:00:00 2001 From: Stanislav Motylkov Date: Wed, 22 Jul 2020 19:50:24 +0300 Subject: [PATCH] [FASTFAT] Support 64 KiB cluster sizes FAT16 filesystem was not recognized on some 4GB USB flash drives. This change makes them just work. References: - https://chat.reactos.org/reactos/pl/h83pm5ngkffk7qiyrmqnaaopxh - https://support.microsoft.com/en-us/help/140365/default-cluster-size-for-ntfs-fat-and-exfat CORE-16511 --- drivers/filesystems/fastfat/fsctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/filesystems/fastfat/fsctl.c b/drivers/filesystems/fastfat/fsctl.c index d8394e46a72..a8cbca4670f 100644 --- a/drivers/filesystems/fastfat/fsctl.c +++ b/drivers/filesystems/fastfat/fsctl.c @@ -197,9 +197,9 @@ VfatHasFileSystem( } if (*RecognizedFS && - Boot->BytesPerSector * Boot->SectorsPerCluster > 32 * 1024) + Boot->BytesPerSector * Boot->SectorsPerCluster > 64 * 1024) { - DPRINT1("ClusterSize %dx\n", Boot->BytesPerSector * Boot->SectorsPerCluster); + DPRINT1("ClusterSize %d\n", Boot->BytesPerSector * Boot->SectorsPerCluster); *RecognizedFS = FALSE; }