persistent device storage
david at fubar.dk
Fri May 14 04:56:19 PDT 2004
On Fri, May 14, 2004 at 01:11:38PM +0200, Kay Sievers wrote:
> On Sun, 2004-05-09 at 22:04 +0200, David Zeuthen wrote:
> > On the topic of attributes for properties, maybe it would be useful to
> > have owners/permissions? I thought about just having all properties read
> > only for non-root and having the name space user.* be special in the
> > sense it is per-user and writable. Maybe this is the easiest to do; I
> > mean it's probably not useful to read other users properties?
> Hi David,
> what is the reason not to store the user properties in the home
> directory which is mentioned in the TODO?
It's per-machine and NFS homedirs etc. etc.
> If you want per machine user data, hald can create a uuid for its own
> store and look in the users home dir for a matching set?
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.).
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..
hal mailing list
hal at freedesktop.org
More information about the Hal