Understanding fdi cache invalidation

Frederic Crozat fcrozat at mandriva.com
Wed Mar 7 08:52:19 PST 2007


Le mercredi 07 mars 2007 à 17:22 +0100, Kay Sievers a écrit :
> On 3/7/07, Frederic Crozat <fcrozat at mandriva.com> wrote:
> > I've just pushed hal 0.5.9rc1 in Mandriva cooker so we could have a not
> > too old version of Hal in next Mandriva but I'm not sure fdi cache
> > invalidation is working as expected (or at least, how I think it should
> > work) :
> >
> > currently, if .fdi files are modified, it is correctly detected by
> > inotify and hal knows it will have to rebuild its fdi cache
> > "15:37:06.475 [I] device_info.c:1016: invalidating fdi cache"
> >
> > But if I do "lshal" after that, I still get the old cache content
> > and /var/cache/hald/fdi-cache is still the old version.
> >
> > Am I missing something ?
> 
> The content will change when the device is probed again (disconnect/connect).

Ok, so for static device properties (like adding quirks or when
upgrading hal-info package), we still need to restart hald to make sure
all data are up to date in daemon, right ?

-- 
Frederic Crozat <fcrozat at mandriva.com>
Mandriva



More information about the hal mailing list