diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-10-09 23:49:55 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-10-09 23:49:55 +0000 |
commit | 1a0708da5afa3dd08029c231aec73469dfac44f0 (patch) | |
tree | dadb82330433bb8af19b0fbcbc9e8258a5e061b6 /sys/msdosfs/msdosfs_vfsops.c | |
parent | 9a464c85a407c0dc5cba952a1c4f8ac4565750d4 (diff) |
Do not check the SecPerTrack field of the BPB when mounting a MSDOS
file system. In modern images the field is not set properly and
the value is not used anyway. FreeBSD has removed the check already
in 2008.
From Alexander von Gernler; OK krw@
Diffstat (limited to 'sys/msdosfs/msdosfs_vfsops.c')
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index 152e4260f7d..023ab7b6653 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vfsops.c,v 1.81 2016/09/28 18:49:11 jca Exp $ */ +/* $OpenBSD: msdosfs_vfsops.c,v 1.82 2016/10/09 23:49:54 bluhm Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */ /*- @@ -323,7 +323,7 @@ msdosfs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p, /* Determine the number of DEV_BSIZE blocks in a MSDOSFS sector */ pmp->pm_BlkPerSec = pmp->pm_BytesPerSec / DEV_BSIZE; - if (!pmp->pm_BytesPerSec || !SecPerClust || pmp->pm_SecPerTrack > 64) { + if (!pmp->pm_BytesPerSec || !SecPerClust) { error = EFTYPE; goto error_exit; } |