christos 08f54aa8c8 Don't add the 2 reserved clusters before we determine if we using fat16/fat32.
From FreeBSD: https://reviews.freebsd.org/D23082:

Correct off-by-two issue when determining FAT type.

In the code we used NumClusters as the upper (non-inclusive) boundary
of valid cluster number, so the actual value was 2 (CLUST_FIRST) more
than the real number of clusters. This causes a FAT16 media with
65524 clusters be treated as FAT32 and might affect FAT12 media with
4084 clusters as well.

To fix this, we increment NumClusters by CLUST_FIRST after the type
determination.
2020-01-11 16:29:07 +00:00
..
2019-05-31 16:38:27 +00:00
2019-05-08 06:10:30 +00:00
2019-08-07 19:08:10 +00:00
2019-12-15 11:49:28 +00:00
2019-09-28 18:03:18 +00:00
2019-10-28 22:52:43 +00:00
2019-10-28 22:52:43 +00:00
2019-12-07 12:35:27 +00:00
2019-05-23 11:13:17 +00:00
2019-06-30 11:38:16 +00:00
2019-12-27 07:41:22 +00:00