From owner-freebsd-stable Tue Mar 23 2:52:52 1999 Delivered-To: freebsd-stable@freebsd.org Received: from mail.palmerharvey.co.uk (mail.palmerharvey.co.uk [62.172.109.58]) by hub.freebsd.org (Postfix) with ESMTP id DA44E14E10 for ; Tue, 23 Mar 1999 02:52:47 -0800 (PST) (envelope-from Dom.Mitchell@palmerharvey.co.uk) Received: from ho-nt-01.pandhm.co.uk (unverified) by mail.palmerharvey.co.uk (Content Technologies SMTPRS 2.0.15) with ESMTP id ; Tue, 23 Mar 1999 10:52:36 +0000 Received: from voodoo.pandhm.co.uk ([10.100.35.12]) by ho-nt-01.pandhm.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id GZL8KC85; Tue, 23 Mar 1999 10:46:02 -0000 Received: from dom by voodoo.pandhm.co.uk with local (Exim 2.10 #1) id 10POqH-00008J-00; Tue, 23 Mar 1999 10:55:29 +0000 To: Jason McNew Cc: stable@freebsd.org Subject: Re: Perl File::Find problem X-Mailer: nmh-1.0 X-Colour: Green Organization: Palmer & Harvey McLane In-Reply-To: Jason McNew's message of "Tue, 23 Mar 1999 04:13:37 CST" <36F76950.9681B350@clearsail.net> Date: Tue, 23 Mar 1999 10:55:29 +0000 From: Dom Mitchell Message-Id: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 23 March 1999, Jason McNew proclaimed: > I'm trying to use the File::Find module in Perl 5 and for some reason it > refuses to search through my fat32 mouted dirs. Observe the folowing > code: > > use File::Find; > &find(\&ismp3, '/d','/c','/usr/home'); > > sub ismp3 { > if(/mp3/i) { push @mp3list, $File:Find:name; } > } > > It works exactly as expect but only under /usr/home. It quietly skips > over /c and /d which are both fat32 partitions. After removing the > '/usr/home' for testing, I found that it claims to have searched /c and > /d in under .2 seconds, when using `find /c` as I used to do usually > takes a full 80 seconds. > I checked to make sure that they are in fact mounted; they are. I'm not > sure if it's aproblem with the module it's self or in the way it > interacts with the os. I'm running FreeBSD 3.0-stable CVSup'ed about 3 > days ago and using the version of perl compiled with it (5.002_02). Any > ideas? Try running the whole thing under ktrace(1) to see what's really going on. Off the top of my head, it may be the same problem that find used to have on older Unix systems, where it didn't like cd9660 filesystems, because the link count on the directory was wrong. It's been such a long time since I've looked inside a FAT filesystem, that I have no ideas whether or not this would be the case. -- Dom Mitchell -- Palmer & Harvey McLane -- Unix Systems Administrator "Anybody who can paint a fence Tinky-Winky purple is alright in my book." -- LLB -- ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ********************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message