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.

Approved by: re
PR: 280347
Reported by: pho@FreeBSD.org

(cherry picked from commit 45d4e82bf61f91792142a2b9e2af657dab8500fd)
(cherry picked from commit e8f52a86ee279a1270e31bc5bad436939e44f555)

Details

Provenance
seAuthored on Aug 9 2024, 5:26 PM
Parents
rGe664cd1dc5fb: Fix EFI loader reproducibility with lld
Branches
Unknown
Tags
Unknown