[proposal] VolumeAutomount and VolumeAutoUnmount notifications

Luke Kenneth Casson Leighton lkcl at lkcl.net
Thu Sep 23 10:17:04 PDT 2004


hi,

would it be okay to create the above notify messages for use with KVM?

the behaviour of KVM (and GDM) would need to be rather different from
VolumeMount than from VolumeAutoMount.

reason: you _do not_ want KVM or GDM to run the "mount" command on an
automounted point, which is what they would do.

rather, these programs should just "trust" HAL that autofs has
"got it covered" :)

the alternative is for KVM and GDM to read /etc/auto.hal - which might
in fact at some point turn into a shell script rather than be a flat
configuration file - which is therefore neither desirable nor maybe
in the future even possible.

also, i don't believe it's a good idea for KVM or GDM to actually be
doing the mounts and unmounts themselves: as i mentioned before, it
leads to OS-specific code in KDE and Gnome [that HAL is supposed to
alleviate].

_so_ :)

this is fun!

btw i'm getting there with the automount stuff in hald:

- i've added into fstab-sync (in-autofs-mode) some code that updates
  "volume.mount_point".

- after the hal_callout_device() in detect_media() i run a
  "VolumeMount" notify (which i think should be VolumeAutoMount).

- i've switched off VolumeMount and VolumeUmount notifies from
  /etc/mtab parsing.

more to do...

l.

-- 
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:lkcl at lkcl.net"> lkcl at lkcl.net </a> <br />

_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list