mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RE: [PATCH] htree nfs fix
@ 2003-05-14  0:23 Trond Myklebust
  2003-05-14  0:44 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Trond Myklebust @ 2003-05-14  0:23 UTC (permalink / raw)
  To: akpm, tytso; +Cc: Linux Kernel


Get the facts right please: That rant was bullshit.

  NFS tries as hard as it can to interpret the cookie as a bag of
bits. It gets screwed in this by a VFS interface which treats the
32-bit getdents() as having unsigned 32-bit cookies, and the 64-bit
getdents64() as having signed 64-bit cookies.

To make matters worse, glibc comes along and assumes it can use
getdents64 as a substitute for getdents() without having to give any
thought to the problem of cookies.


If you're unhappy with the state of readdir, then fix the VFS/glibc.
At the moment it is simply not possible to write a consistent readdir
at the NFS level.

Trond

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-14  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14  0:23 [PATCH] htree nfs fix Trond Myklebust
2003-05-14  0:44 ` Andrew Morton
2003-05-14  9:05   ` Trond Myklebust
2003-05-14  9:12     ` Andrew Morton
2003-05-14  9:32       ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®