persistent device storage

David Zeuthen david at fubar.dk
Fri May 14 05:38:35 PDT 2004


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?

> 
> 
> > 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.

Thanks,
David

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



More information about the Hal mailing list