Re: A few questions.....

Mikulas Patocka (mikulas@artax.karlin.mff.cuni.cz)
Thu, 24 Jun 1999 15:38:05 +0200 (CEST)


> I am considering writing a new feature for Linux. Basically it would
> allow you to open arbitrary URLs with the open() call. Something like
> open("http://somehost/~somepage/foo.tar.gz", O_RDONLY)
> or
> open("ftp://somehome/foo.tar.gz", O_RDONLY)
>
> The question I have is would this be more effciently done in
> userspace(libc, etc...) or does this functionality belong in the kernel.
> I was thinking if I did go the kernel route having separate modules that
> could be loaded via kmod to handle various protocols. Another question is
> how would one do DNS lookups in the kernel?? I'd assume some callback to
> userspace to do the lookup. Also where would be the ideal place to put
> the hook into the kernel? Would it go in somewhere like sys_open() or
> elsewhere?

It's better to do this in userspace because speed doesn't matter here.
Look at podfuk - it acts as coda cache and can download ftp files and
unpack tgz archives.
http://atrey.karlin.mff.cuni.cz/~pavel/podfuk/podfuk.html

Mikulas

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