From nobody@FreeBSD.org  Sat Feb 14 00:48:21 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 91E1616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Feb 2004 00:48:21 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8E65143D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Feb 2004 00:48:21 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1E8mL72001633
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Feb 2004 00:48:21 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i1E8mL1d001632;
	Sat, 14 Feb 2004 00:48:21 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200402140848.i1E8mL1d001632@www.freebsd.org>
Date: Sat, 14 Feb 2004 00:48:21 -0800 (PST)
From: akira noda <a-noda@jaist.ac.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: some time cannt mount FAT32 file system
X-Send-Pr-Version: www-2.0

>Number:         62826
>Category:       kern
>Synopsis:       some time cannt mount FAT32 file system
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    tjr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 14 00:50:17 PST 2004
>Closed-Date:    Tue Mar 02 01:48:00 PST 2004
>Last-Modified:  Tue Mar 02 01:48:00 PST 2004
>Originator:     akira noda
>Release:        FreeBSD 4.8-RELEASE-p14
>Organization:
JAIST (univ.)
>Environment:
FreeBSD d246-55.jaist.ac.jp 4.8-RELEASE-p14 FreeBSD 4.8-RELEASE-p14 #26: Tue Feb 10 02:08:45 JST 2004     root@d246-55.jaist.ac.jp:/usr/src/sys/compile/akira  i386

>Description:
may be msdosfs.ko don't handle FSI info correctol
In this document (japanese : http://triaez.kaisei.org/~s-zouda/pc/fat32.html)
some time "pmp->pm_nxtfree" in msdosfs_vfsops.c become 0xffffffff(i.e. -1)

but this code in msdosfs_vfsops.c donnt care about it 
>How-To-Repeat:
make new 28Gbyte FAT32 filesystem in expand partion with windows 2000 pro(japanese editon).
copy many files over 2Gbyle to the FAT32.
then reboot and boot FreeBSD in same disk.
mount the FAT32

mount -t msdos /dev/ad0s6 /mnt/data2

then "invalid argument" error message comes and failt to mount

>Fix:
may be flloing patch resolve this problem.
(target file is /usr/src/sys/msdosfs/msdosfs_vfsops.c)

$ diff msdosfs_vfsops.c.org msdosfs_vfsops.c

675a676

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->tjr 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Feb 14 15:38:41 PST 2004 
Responsible-Changed-Why:  
Tim has done some work here recently 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62826 
State-Changed-From-To: open->patched 
State-Changed-By: tjr 
State-Changed-When: Tue Feb 17 00:52:09 PST 2004 
State-Changed-Why:  
Fixed in -current, will be MFC'd after 2 weeks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62826 
State-Changed-From-To: patched->closed 
State-Changed-By: tjr 
State-Changed-When: Tue Mar 2 01:47:35 PST 2004 
State-Changed-Why:  
Fixed in -stable, thanks for the report. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62826 
>Unformatted:
 >> if(pmp->pm_nxtfree==0xffffffff)pmp->pm_nxtfree=0;
 
 
 
