Re: If we cannot change file system semantics, we must concede that Bill Gates is right that Linux c

Hans Reiser (reiser@ceic.com)
Thu, 1 Jul 1999 13:13:20 +0000 (/etc/localtime)


Pavel Machek writes:
> Hi!
>
> > Now, what we _could_ do is to provide a user-space library stub for
> > other NFS clients which translates O_DIRECTORY() opens to a file into an
> > open of something like "filename/.%%pseudodir%%", and have an NFS server
> > which detects that pseudoname and munges it into an O_DIRECTORY open on
> > the server side.
>
> Aha - so Hans want open() to work on directories only when app does
>
> open("/etc", O_OPEN_DIRECTORY_AS_FILE)
>
> ? That will not break anything, but I doubt it is better than
>
> open("/etc#opendirasfile", O_RDONLY)

How about open("/etc/", O_RDWR)?

With the user library translating that to open("/etc/..body", O_RDWR)

>
> which has advantage of easily going through network, advantage of user
> being able to explicitly ask for this even for old apps (think cat
> /etc - how do you convince cat to use O_OPEN_DIRECTORY_AS_FILE? You
> add option? And why adding option when cat /etc#opendirasfile works
> nicer?)

-
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/