From owner-freebsd-hackers Tue Jan 30 18:15:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from elixir.e.kth.se (elixir.e.kth.se [130.237.48.5]) by hub.freebsd.org (Postfix) with ESMTP id C4C5837B6B2 for ; Tue, 30 Jan 2001 18:15:06 -0800 (PST) Received: from mom.e.kth.se (mom.e.kth.se [130.237.48.249]) by elixir.e.kth.se (8.9.3/8.9.3) with ESMTP id DAA08334; Wed, 31 Jan 2001 03:14:54 +0100 (MET) Received: (from lha@localhost) by mom.e.kth.se (8.9.3/8.9.3) id DAA20252; Wed, 31 Jan 2001 03:15:04 +0100 (MET) X-Authentication-Warning: mom.e.kth.se: lha set sender to lha@stacken.kth.se using -f To: Chris Csanady Cc: freebsd-hackers@freebsd.org, arla-drinkers@stacken.kth.se Subject: Re: FreeBSD Linux emulation / arla 0.34.6 References: <200101310002.SAA27885@isua3.iastate.edu> From: Love Date: 31 Jan 2001 03:15:04 +0100 In-Reply-To: Chris Csanady's message of "Tue, 30 Jan 2001 18:02:15 CST" Message-ID: Lines: 29 User-Agent: Gnus/5.0804 (Gnus v5.8.4) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris Csanady writes: > >The patch below for arla fixes the problem. > > > >> I believe that this might also be what is causing linux-netscape > >> to wedge the machine (with home directories on afs), although I'm > >> not positive. > > This patch does fix the directory problem, but apparently not the > netscape wedging problem. Anyways, I have tracked it down I think, > but I'm not positive about the fix. > > The problem appears to be xfs_readdir getting passed a directory > that contains an entry with dp->d_reclen zero--then it gets stuck > infinitely looping here. Yes, that is definitely a bug in xfs. It's also a bug in arlad. Can you add `printf ("name: %s %d\n", dp->d_name, dp->d_reclen)' in one of the cookie loops too find what directory that is corrupted. The try to find the file in arla's cache directory. The converted directory's filename ends with '@' and will contain the information that the kernel reads. Then try to parse the file, or send it to ({lha,map,assar}@stacken.kth.se) and we'll try to figure out why it happens. I've commited your patch. Thanks. Love To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message