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:
Robert Watson 2004-03-14 23:28:12 +00:00
parent 22937d6049
commit 0ff34b5e1c

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