HAL methods at storage device level, to mount/unmount/eject volumes

David Zeuthen david at fubar.dk
Wed Dec 14 07:45:13 PST 2005


On Tue, 2005-12-13 at 17:56 +0100, Kay Sievers wrote:
> Fine. It already is a whitelist, that throws "InvalidMountType", if
> anything else than the listed options are given. It also uses
> $HAL_PROP_VOLUME_FSTYPE if the string is empty, which it is supposed
> to be in most cases.

Good stuff. I've hacked up the first incarnation of gnome-mount here

 http://freedesktop.org/~david/gnome-mount-0.1.tar.gz

Patches welcome - I do plan to hack a bit on it so maybe we should put
it in CVS or I should setup a mercurial repo. I'm busy right now.

Other stuff/comments

 1. I've added a "dry-run" option to Mount()

 2. Unmount() doesn't rmdir the entry in /media, yes?

 3. We need a callout or method for cleaning all inactive entries
    in /media when starting up

 4. Need to put the selinux options stuff if applicable

 5. Need some way to figure out what mount options is available so
    we can generate some reasonable GUI? Just a method call?

Cheers,
David




More information about the hal mailing list