Skip to content

Commit 06d5ed7

Browse files
committed
[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
1 parent 21b56d7 commit 06d5ed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/filesystems/fastfat/fsctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ VfatHasFileSystem(
197197
}
198198

199199
if (*RecognizedFS &&
200-
Boot->BytesPerSector * Boot->SectorsPerCluster > 32 * 1024)
200+
Boot->BytesPerSector * Boot->SectorsPerCluster > 64 * 1024)
201201
{
202-
DPRINT1("ClusterSize %dx\n", Boot->BytesPerSector * Boot->SectorsPerCluster);
202+
DPRINT1("ClusterSize %d\n", Boot->BytesPerSector * Boot->SectorsPerCluster);
203203
*RecognizedFS = FALSE;
204204
}
205205

0 commit comments

Comments
 (0)