From owner-freebsd-hackers Wed Jan 24 12:24:42 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id 86CB537B400 for ; Wed, 24 Jan 2001 12:24:24 -0800 (PST) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id f0OKOGl33308; Wed, 24 Jan 2001 21:24:16 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: "Marco van de Voort" Cc: Chris , arla-drinkers@stacken.kth.se, freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD Linux emulation / arla 0.34.6 In-Reply-To: Your message of "Wed, 24 Jan 2001 21:21:12 +0100." <3A6F4748.15758.2090E6@localhost> Date: Wed, 24 Jan 2001 21:24:16 +0100 Message-ID: <33306.980367856@critter> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <3A6F4748.15758.2090E6@localhost>, "Marco van de Voort" writes: >> I have discovered a rather interesting bug with this combination, >> and was wondering if anyone could point me in the right direction >> to help me track it down. >> >> The problem is that linux binaries which call getdirents on an afs >> directory do not report the last directory entry: > >Hmm. Could it be getdirentries itself, or some oddity that is not >documented, but worked around in libc? I also have some >getdirentries (FreeBSD version, patched together I directly admit) >based code that sometimes doesn't seem to be able to find certain >directories. I had some fun with it when playing with a TOYFS of mine. Take a peek in the libc sources, there are som assumptions which may surprise you. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message