Subject: Re: problem with tmpfs and linux emulation?
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: current-users
Date: 11/12/2005 22:46:53
On Sat, Nov 12, 2005 at 08:27:46PM +0100, Jaromir Dolecek wrote:
> On Sat, Nov 12, 2005 at 02:01:46PM -0500, Steven M. Bellovin wrote:
> > The symptom is that some applications -- I'm seeing it with openoffice2 
> > -- can't read tmpfs directories via linux emulation.  A posting by Thor 
> > summarizes it:
> 
> Aha - so is the problem that Linux glibs reads the directory
> entries via read(2) rather then using getdents()? Oh my god.

No, on Linux, read(2) on directories returns an error:

$ od -x < $PWD
od: standard input: read error: Is a directory
0000000
$ uname -rs
Linux 2.4.31-rc1

Pavel Cahyna