HomeFreeBSD

msdosfs: Fix mounting when the device sector size is >512B

Description

msdosfs: Fix mounting when the device sector size is >512B

HugeSectors * BytesPerSec should be computed before converting
HugeSectors to a DEV_BSIZE-based count.

Fixes: ba2c98389b78 ("msdosfs: sanity check sector count from BPB")
Reviewed by: kib
Sponsored by: The FreeBSD Foundation

(cherry picked from commit c7cd607a4e28233ab6679ee330c0a4836414bb0a)

Details

Provenance
markjAuthored on Feb 14 2022, 2:41 PM
Parents
rGdbba19453e80: sleepqueue: Annotate sleepq_max_depth as static
Branches
Unknown
Tags
Unknown