From owner-freebsd-current Mon Mar 23 22:42:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA00939 for freebsd-current-outgoing; Mon, 23 Mar 1998 22:42:40 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from helios.dnttm.ru (root@dnttm-gw.rssi.ru [193.232.0.205]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA00927 for ; Mon, 23 Mar 1998 22:42:34 -0800 (PST) (envelope-from dima@tejblum.dnttm.rssi.ru) Received: (from uucp@localhost) by helios.dnttm.ru (8.8.5/8.8.5/IP-3) with UUCP id CAA12461; Tue, 24 Mar 1998 02:19:56 +0300 Received: from tejblum.dnttm.rssi.ru (localhost [127.0.0.1]) by tejblum.dnttm.rssi.ru (8.8.8/8.8.7) with ESMTP id CAA01396; Tue, 24 Mar 1998 02:22:32 +0300 (MSK) (envelope-from dima@tejblum.dnttm.rssi.ru) Message-Id: <199803232322.CAA01396@tejblum.dnttm.rssi.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: Hostas Red cc: current@FreeBSD.ORG Subject: Re: Having problems with msdosfs In-reply-to: Your message of "Sun, 22 Mar 1998 23:28:18 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 24 Mar 1998 02:22:32 +0300 From: Dmitrij Tejblum Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hostas Red wrote: > > > Still having problems with writing onto msdosfs partition (FAT32). It > > > reads ok, but when i'm trying to write a couple of files there, system > > > hangs, and need a reset to reboot. Thanks for your backtrace! I hope I found the bug. Try this: --- msdosfs_fat.c Tue Mar 3 01:54:31 1998 +++ msdosfs_fat.c Tue Mar 24 02:06:48 1998 @@ -355,7 +355,7 @@ * The cluster indicated in FSInfo isn't free * any longer. Got get a new free one. */ - for (cn = 0; cn < pmp->pm_maxcluster;) + for (cn = 0; cn < pmp->pm_maxcluster; cn += N_INUSEBITS) if (pmp->pm_inusemap[cn / N_INUSEBITS] != (u_int)-1) break; pmp->pm_nxtfree = cn (This is actually not tested. I hope now you will see a trouble in some other place :). If not, I have to create better testing environment :( ) > BTW, also doesn't works koi2dos trantable (locale doesn't works too), if > used from fstab - it can't find a "/usr/libdata/msdosfs/koi2dos" file (it > IS there, and if mounted from console afterboot, everything works fine > (read, at least, because write now is broken)), and can't find locale > ru_RU.KOI8-R, too. Any suggestions? If i use full path for trantable, it > doesn't helps - it can't find a file, where he is. > This is really strange. It works for me just fine (thanks ache!). May be, some part of your source out of date? Please tell what exactly you do and what exactly it says. Dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message