persistent device storage

Kay Sievers kay.sievers at vrfy.org
Fri May 14 05:50:16 PDT 2004


On Fri, 2004-05-14 at 14:38 +0200, David Zeuthen wrote:
> On Fri, May 14, 2004 at 02:07:58PM +0200, Kay Sievers wrote:
> > > Yeah that would make sense actually - what should the uuid be? Probably
> > > something more unique and persistent than the ip-address or hostname
> > > as this can change and it isn't really unique (on some sites, both IP and
> > > hostnames changes every time on bootup due to DHCP settings etc.).
> > 
> > thats from the libuuid inside the ext2fs-utils:
> > 
> 
> Do we want to add this dependency?

No, I don't think that we want a 37 char long directory name :)
Should it start with the hostname for easy human recognition or just a
random number?

> > 
> > 
> > > Maybe an md5 of hostname / ip-address / time, generated the first time
> > > hald starts up would do? Or maybe we can just stash it in /var per
> > > machine as I originally had thought, but that leaves the problem of
> > > deleting it when the user is deleted. Hmmm..
> > 
> > What about hald creates at first startup its uuid and places it
> > in /var/lib/hal. Everytime hald inits the store, it reads its uuid from
> > there.
> > If a user connects through DBUS, hald reads/writes
> > $HOME/.hal/<uuid>/<udi>/<property> in the users home.
> > This should solve the dead properties and it gives the user total contol
> > over the stored data for multiple machines.
> > 
> 
> Makes sense - we should probably include the name of the device store
> so it would be $HOME/.hal/<uuid>/<storename>/<udi>/<property> or something.

Fine, I will update:
  http://freedesktop.org/Software/HalTODO


Kay


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



More information about the Hal mailing list