diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-03-14 23:28:12 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-03-14 23:28:12 +0000 |
commit | 67b7ca7cb820e98b66c4cf067d07d1a93e72094d (patch) | |
tree | cd71912f3a49e5114835f026fa2310489b3824e5 /sys/fs | |
parent | cb031e0662355e0ecb9fc568f92dc39df566dfcc (diff) | |
download | FreeBSD-src-67b7ca7cb820e98b66c4cf067d07d1a93e72094d.zip FreeBSD-src-67b7ca7cb820e98b66c4cf067d07d1a93e72094d.tar.gz |
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).
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/msdosfs/msdosfs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index 0406a36..dd4512a 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -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 |