Subject: Re: problem with tmpfs and linux emulation?
To: SODA Noriyuki <soda@sra.co.jp>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: current-users
Date: 11/12/2005 15:22:07
On Sun, Nov 13, 2005 at 04:54:18AM +0900, SODA Noriyuki wrote:
> >>>>> On Sat, 12 Nov 2005 19:23:40 +0000 (UTC),
>       christos@astron.com (Christos Zoulas) said:
> 
> > I don't think that linux uses read to read directories. I think it always
> > uses getdents. Something else must be going on. Can someone verify by using
> > ktrace?
> 
> Linux libc doesn't use read(2) to read directories, it uses
> getdents64().

"It depends".  There were discussions on linux kernel lists as little
as a year ago about how it would be _nice_ to be able to assume that
libc always used getdents64() to avoid supporting lseek() on directories.

Thor