Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 1998 02:22:32 +0300
From:      Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
To:        Hostas Red <kong@kkk.ml.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: Having problems with msdosfs 
Message-ID:  <199803232322.CAA01396@tejblum.dnttm.rssi.ru>
In-Reply-To: Your message of "Sun, 22 Mar 1998 23:28:18 %2B0300." <Pine.BSF.3.96.980322230945.1092B-100000@kong.dorms.spbu.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803232322.CAA01396>