Subject: Re: problem with tmpfs and linux emulation?
To: SODA Noriyuki <>
From: Thor Lancelot Simon <>
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 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.