HomeFreeBSD

msdosfs: fix cluster limit when mounting FAT-16 file systems

Description

msdosfs: fix cluster limit when mounting FAT-16 file systems

The maximum cluster number was calculated based on the number of data
cluters that fit in the givem partition size and the size of the FAT
area. This limit did not take into account that the highest 10 cluster
numbers are reserved and must not be used for files.

PR: 280347
Reported by: pho@FreeBSD.org

(cherry picked from commit 45d4e82bf61f91792142a2b9e2af657dab8500fd)

Details

Provenance
seAuthored on Aug 9 2024, 5:26 PM
Parents
rGb5ce60dffd5d: zdb: Fix printf formatting of a uint64_t
Branches
Unknown
Tags
Unknown