kern/62826: some time cannt mount FAT32 file system

akira noda a-noda at jaist.ac.jp
Sat Feb 14 00:50:18 PST 2004


>Number:         62826
>Category:       kern
>Synopsis:       some time cannt mount FAT32 file system
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 14 00:50:17 PST 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
 >> if(pmp->pm_nxtfree==0xffffffff)pmp->pm_nxtfree=0;
 
 
 


More information about the freebsd-bugs mailing list