Re: A few questions.....

Jan-Simon Pendry (jsp@ms.com)
Thu, 24 Jun 1999 18:43:33 +0100


Stephen Frost wrote:
>
> On Thu, 24 Jun 1999 jerome@psti.com wrote:
>
> > ok now the thing is to know which of open("http://www.site.org");
> > vs open("/http/www.site.org");
> >
> > one disadvantage, "http://..." breaks the usual semantic of the
> > unix filenames.
> >
> > there is any advantage ?
>
> Eh, 'users' MIGHT like it better. Not a good enough reason
> to go mucking about in every place 'open' gets implemented to watch
> for 'http://' at the beginning of a file, esp since a file with that
> name COULD technically exist... MAYBE /net/http://somesite/index.html

i implemented a general purpose namespace hook in 4.4 bsd
called the portal filesystem. you can hang anything you like
on the end of it, including HTTP GET, FTP PUT etc. i guess
you really want

open("/url/type://some/uri")

and have the url daemon attached to "/url". (please don't limit
this to just http.)

jan-simon.

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