From owner-freebsd-ports Thu Apr 10 00:03:00 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA19927 for ports-outgoing; Thu, 10 Apr 1997 00:03:00 -0700 (PDT) Received: from gatekeeper.ukrv.de (gatekeeper.ukrv.de [193.175.72.2]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id AAA19922 for ; Thu, 10 Apr 1997 00:02:56 -0700 (PDT) Received: by gatekeeper.ukrv.de; (5.65/1.1.8.2/17Oct95-0336PM) id AA15524; Thu, 10 Apr 1997 09:01:56 +0200 Received: from mailhost(193.175.66.33) by gatekeeper.ukrv.de via smap (V1.3-JSC) id sma015557; Thu Apr 10 09:01:51 1997 Received: from merlin.ukrv.de by mailhost.ukrv.de; (5.65/1.1.8.2/08Mar95-0213PM) id AA26124; Thu, 10 Apr 1997 09:01:51 +0200 Received: by merlin.ukrv.de (4.1/UKRV-Gen PCG 0.1) id AA21405; Thu, 10 Apr 97 09:01:50 +0200 From: Udo Wolter Message-Id: <9704100701.AA21405@merlin.ukrv.de> Subject: Re: ports/3205: Mtools-3.0 fails to WRITE to dos partition under 2.2 (fix supplied) To: freebsd-ports@freefall.freebsd.org Date: Thu, 10 Apr 1997 09:01:50 +0200 (MET DST) In-Reply-To: from "uwp" at Apr 6, 97 10:38:54 pm Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: ELM [version 2.4 PL17] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi ! > Can Anyone tell me, why the mtools are so damn slow with SCSI disks ? I > have between 16 and 26 seconds waiting time for a simple mdir (depends on > which disk I choose) and nearly 2KB/s rate when copying to or from it. > I use a Adaptec 2940AU. In my notebook I use an IDE disk, there's absolutely > no problem with the speed, it runs normally. Can anyone tell me how to > change this behaviour ? > > > >On examination, it turns out that rather than using perror(), > > >the mtools source uses the following logic: > > > > > >If flock(device) fails > > > and it's EINVAL > > > Then assume we don't need to lock the device > > > otherwise > > > print `device busy' > > > > > >FreeBSD doesn't return EINVAL for this purpose - it uses EOPNOTSUPP. > > By the way, I tried the patch and it didn't changed anything. Maybe a problem > with the SCSI-code ? I use 2.1.6R at this time... Ok, now here's the solution: mtools-3.5a They provide SCSI-support and many bugs have been fixed. I'd suggest to include this version in the packages. It's hardly recommended for most users like me who has partitions beyond 1GB because msdosfs can destroy such partitions. Bye, Udo -- Udo Wolter, email: uwp@cs.tu-berlin.de !!! LOW-TECH Page: http://www.cs.tu-berlin.de/~uwp/low-tech.html !!!