Alan Cox wrote:
> > wingel@t1.ctrl-c.liu.se wrote:
> > > So instead of doing "cd file-with-forks"
> > You don't CD to a file with streams, because it's not a directory.
>
> But its not a file either, so if you can opendir it why cant you make it
> your cwd. Lots of tools depend on that kind of behaviour since the
> chdir/opendir(".") sequence is materially faster on some unixes.
>
> So why disallow the chdir().
The current kernel already implements that.
If an fs object provides ->lookup(), you can opendir() it. But you
can't chdir() or even fchdir() into it unless it has type S_IFDIR. This
goes back to at least 2.2.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:35 EST