Don't reject FAT file systems with a number of "Heads" greater than

255; USB keychains exist that use 256 as the number of heads.  This
check has also been removed in Darwin (along with most of the other
head/sector sanity checks).
This commit is contained in:
rwatson 2004-03-14 23:28:12 +00:00
parent cb031e0662
commit 67b7ca7cb8

View File

@ -398,7 +398,7 @@ mountmsdosfs(devvp, mp, td, argp)
/* XXX - We should probably check more values here */
if (!pmp->pm_BytesPerSec || !SecPerClust
|| !pmp->pm_Heads || pmp->pm_Heads > 255
|| !pmp->pm_Heads
#ifdef PC98
|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 255) {
#else