Re: [RFC] Union mount readdir support in glibc

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roland McGrath
Date: Tuesday, March 11, 2008 - 1:09 am

It seems very unlikely you'd come up with a version of this plan that we'd
find acceptable in glibc.  readdir does buffering, sometimes entry format
conversion, and it can skip dummy entries.  That's it.  It's not going to
become a big hairy thing with all kinds of new state.  Sorry.

This really is the kernel filesystem's problem.  It just doesn't make sense
to expect userland to implement half of your directory semantics for you.
What are you going to do when you want to export a union directory to NFS?
readdir is a filesystem operation.  You're implementing a filesystem.

Exposing DT_WHT entries may be useful as a user feature.  (BSD had unions
with whiteouts years ago, and their ls et al have options to let you see
and operate on whiteouts explicitly so users can make sense of strange
situations with unions.)  But even for that, we'd have to consider the
compatibility issues.


Thanks,
Roland
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Union mount readdir support in glibc, Bharata B Rao, (Mon Mar 10, 10:55 pm)
Re: [RFC] Union mount readdir support in glibc, Roland McGrath, (Tue Mar 11, 1:09 am)
Re: [RFC] Union mount readdir support in glibc, Bharata B Rao, (Tue Mar 11, 5:49 am)
Re: [RFC] Union mount readdir support in glibc, Bharata B Rao, (Tue Mar 11, 9:28 pm)
Re: [RFC] Union mount readdir support in glibc, Ulrich Drepper, (Thu Mar 13, 8:53 pm)
Re: [RFC] Union mount readdir support in glibc, Al Viro, (Thu Mar 13, 10:39 pm)
Re: [RFC] Union mount readdir support in glibc, Ulrich Drepper, (Fri Mar 14, 12:13 am)
Re: [RFC] Union mount readdir support in glibc, Miklos Szeredi, (Fri Mar 14, 1:41 am)
Re: [RFC] Union mount readdir support in glibc, Jan Blunck, (Fri Mar 14, 8:07 am)
Re: [RFC] Union mount readdir support in glibc, Peter Staubach, (Fri Mar 14, 10:53 am)
Re: [RFC] Union mount readdir support in glibc, Miklos Szeredi, (Fri Mar 14, 1:51 pm)
Re: [RFC] Union mount readdir support in glibc, Trond Myklebust, (Fri Mar 14, 1:58 pm)