Re: Sharing methods among several modules



On Fri, 2005-08-26 at 16:46 +0200, Magnus Bergman wrote:
> There has for a long time been a confusion between the protocol prefix
> of an URI and volume labels (as in AmigaOS and NetWare). For example
> GnomeVFS uses the URI computer:/// to access the virtual "computer
> directory". The idea (I assume) is that it should appear as a volume
> label called "computer:", but the URI of such a label should really be
> file://computer|/ (or is it file:///computer: ?).
> 
> The problem here is a limitation in GnomeVFS which only allows one
> module to handle each method. Thus each new module needs to allocate a
> new method (fake protocol). I decided to fix this by making a module
> which can "mount" other modules in the same tree, or make them appear
> as volume labels. The idea is to have this module handle the
> file-method and mount the file-module as root, and then have the
> possibility to mount other modules (such as the computer-module) at
> other places in that tree. Is this a reasonable approach, would it even
> be suitable for inclusion in GnomeVFS?

I don't understand at all why you would ever want something like this.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a deeply religious gay rock star from the Mississippi delta. She's a 
virginal motormouth college professor with a song in her heart and a spring in 
her step. They fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]