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:
parent
22937d6049
commit
0ff34b5e1c
@ -398,7 +398,7 @@ mountmsdosfs(devvp, mp, td, argp)
|
|||||||
|
|
||||||
/* XXX - We should probably check more values here */
|
/* XXX - We should probably check more values here */
|
||||||
if (!pmp->pm_BytesPerSec || !SecPerClust
|
if (!pmp->pm_BytesPerSec || !SecPerClust
|
||||||
|| !pmp->pm_Heads || pmp->pm_Heads > 255
|
|| !pmp->pm_Heads
|
||||||
#ifdef PC98
|
#ifdef PC98
|
||||||
|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 255) {
|
|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 255) {
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user