]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
msdosfs: Fix mounting when the device sector size is >512B
authorMark Johnston <markj@FreeBSD.org>
Mon, 14 Feb 2022 14:41:32 +0000 (09:41 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 14 Feb 2022 15:06:47 +0000 (10:06 -0500)
commitc7cd607a4e28233ab6679ee330c0a4836414bb0a
tree42e0773478aa26a29a58df465b91a3c33c38b1cc
parent852ff943b9c23d40e36ebe5f82112f7bce4537c9
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
sys/fs/msdosfs/msdosfs_vfsops.c