lkml.org 
[lkml]   [1999]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: If we cannot change file system semantics, we must concede that Bill Gates is right that Linux cannot innovate (was Re: (reiserfs) File systems are semantically impoverished compared) to databases

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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.078 / U:1.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site