Re: Handling of connection-specific parameters (was: Re: Plans for gnome-vfs replacement)



On Sun, 2006-09-24 at 13:27 +0200, Christian Neumair wrote:
> Am Freitag, den 22.09.2006, 16:18 +0200 schrieb Alexander Larsson:
> > Actually, it still problematic in some cases. Consider a network share
> > (say ftp) that somehow (via prefs or the protocol) specifies what
> > encoding its filenames are in. The problem is that not all filenames
> > might be valid in this encoding (for instance, the server says
> > everything is in utf-8 but one file is in latin-1). 
> 
> How do you plan to implement connection- or mount-specific parameters?
> This includes things like network compression levels, whether the login
> directory instead of the actual FS root should be used as URI/IRI
> basename, maybe whether the target should be mounted r/o etc..

I haven't thought at all about the storage of it yet. It sort of depends
on exactly how we handle the mounting.

> Maybe these properties could be exposed via D-Bus, and we'd get
> protocol-specific key/value/tooltip triples which can be used in a GUI.

There would be something like GnomeVFSVolumeManager around. That will
give us an API to keep track of all mounted filesystems and expose
whatever features are required.

> I used to play around with ideas for allowing full connection
> serialization into URIs/IRIs, i.e.
> environment:opt1=foo&opt2=bar&opt3=foobar#protocol:/// but I wonder how
> applicable this is, taken that there are drafts around specifying
> another syntax, for instance for SFTP connection parameters [1]:

I'd prefer to disentangle this from the URI aspect instead of
complicating our relation to URIs further. I haven't given much thought
to the storage format, but anything that lets us store key-value pairs
should work imho.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a scarfaced chivalrous librarian She's an orphaned belly-dancing 
archaeologist with a birthmark shaped like Liberty's torch. They fight crime! 




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