Subject: CVS commit: src/sys/fs/msdosfs
To: None <source-changes@NetBSD.org>
From: Greg Troxel <firstname.lastname@example.org>
Date: 08/14/2006 14:06:26
Module Name: src
Committed By: gdt
Date: Mon Aug 14 14:06:26 UTC 2006
src/sys/fs/msdosfs: bootsect.h msdosfs_vfsops.c
When mounting an MSDOS fileysystem, do not require that bytes 252 and
253 of the superblock be zero. Searching the net failed to find any
justification for checking these bytes; all available references say
that they are part of the boot code and not BOOTSIG2 and BOOTSIG3.
Modify the MSDOS 7.1 bootsector definition to have 420 bytes of boot
code and no BOOTSIG, rather than 418 bytes of boot code, to follow
available references and apparent Windows practice. A test build
showed that these defines are not used other than in the check removed
by this commit.
Patch tested on netbsd-3, and enabled mounting of a 4 GB CF formatted
under Windows XP and then in a digital camera. The CF was previously
Concept approved on tech-kern by christos@ and martin@.
To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/sys/fs/msdosfs/bootsect.h
cvs rdiff -r1.33 -r1.34 src/sys/fs/msdosfs/msdosfs_vfsops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.