[lkml]   [2007]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: If not readdir() then what?
On Sunday April 8, wrote:
> On Sun, 8 April 2007 11:11:20 -0700, H. Peter Anvin wrote:
> >
> > Well, the question is if you can keep the seekdir/telldir cookie around
> > as a pointer -- preferrably in userspace, of course. You would
> > presumably garbage-collect them on closedir() -- there is no other point
> > at which you could.
> Garbage-collecting them on closedir() does not work. It surprised me as
> well, but there seem to be applications that keep the telldir() cookie
> around after closedir(). Iirc, "rm -r" was one of them.
> Neil, is this correct?

It's just NFS. nfsd does open/getdents/close on every readdir
"rm -r" is the application that tends to detect any problems with
cookie handling between the NFS client and server.

(I'm sure there was once an 'rm -r' that used telldir/seekdir, but I
cannot find it. Maybe it was level-7 UNIX :-)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-04-10 23:51    [W:0.157 / U:1.328 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site