[lkml]   [2008]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] Union mount readdir support in glibc
On Thu, Mar 13, 2008 at 08:53:48PM -0700, Ulrich Drepper wrote:

> To handle union FS at userlevel somewhere in that code sequence (perhaps
> in the fstat call) we'd have to recognize such mounts.


How about "the first entry returned by getdents(3) after open() is a whiteout
for e.g. '.'"? No fstat needed, zero impact for normal directories,
zero impact for any binaries on old kernels (where you wouldn't have
unions) and zero impact for old binaries on new kernels unless they
do getdents() on directory that happens to be a union.

And no lockstep...

> Before any
> agreement on userlevel sorting can be made you'll have to answer a
> question Roland already asked:
> - - How does this work with NFS?

It won't, kernel-side or done in userland.

> re seeking: you have to support seeking. There is no way around it.

Actually, do we really need it other than to 0 and to current position
(i.e. full rewind and a no-op)?

 \ /
  Last update: 2008-03-14 07:01    [W:0.058 / U:1.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site