can not mount a large FAT32 filesystem

Mikhail Teterin mi at corbulon.video-collage.com
Tue Sep 27 22:37:55 PDT 2005


Thank you very much, Peter!

Your patch below makes the card "mountable" and usable. I'm copying
my photos right now.

I think, this should be merged into 6.0 -- these cards are a popular
item... Thanks, again!

	-mi

Index: msdosfs_vfsops.c
===================================================================
RCS file: /nfs/dyson/export/home/petere/freebsd-cvs/cvs/FreeBSD/src/sys/fs/msdosfs/msdosfs_vfsops.c,v
retrieving revision 1.144
diff -u -r1.144 msdosfs_vfsops.c
--- msdosfs_vfsops.c	24 Mar 2005 07:36:13 -0000	1.144
+++ msdosfs_vfsops.c	27 Sep 2005 09:40:19 -0000
@@ -512,9 +512,7 @@
 #endif	/* !MSDOSFS_LARGE */
 
 	if (pmp->pm_RootDirEnts == 0) {
-		if (bsp->bs710.bsBootSectSig2 != BOOTSIG2
-		    || bsp->bs710.bsBootSectSig3 != BOOTSIG3
-		    || pmp->pm_Sectors
+		if (pmp->pm_Sectors
 		    || pmp->pm_FATsecs
 		    || getushort(b710->bpbFSVers)) {
 			error = EINVAL;


More information about the freebsd-fs mailing list