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
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34264

Details

Provenance
markjAuthored on Feb 14 2022, 2:41 PM
Reviewer
kib
Differential Revision
D34264: msdosfs: Fix mounting when the device sector size is >512B
Parents
rG852ff943b9c2: sleepqueue: Annotate sleepq_max_depth as static
Branches
Unknown
Tags
Unknown