On Sep 7 2007 11:16, Bharata B Rao wrote: >Questions >--------- >The main problem in getting a sane readdir() implementation in Union Mount >is the fact that a single vfs object (file structure) is used to represent >more than one (underlying) directory. Because of this, it is unclear as to >how lseek(2) needs to behave in such cases. > >First of all, should we even expect a sane lseek(2) on union mounted >directories ? If not, will the Approach 2, which works uniformly for >all filesystem types be acceptable ? Filesystems also have this problem. http://lkml.org/lkml/2007/4/7/107 If you ask me, we should entriely do away with the telldir/seekdir blackmagic (and add appropriate compat code). Jan -- - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html