hal: Branch 'master'
Richard Hughes
hughsient at kemper.freedesktop.org
Thu Mar 5 01:41:04 PST 2009
hald/mmap_cache.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 746d4b8035a4ca7908503e7bbbea4db7284766e9
Author: Richard Hughes <richard at hughsie.com>
Date: Thu Mar 5 09:40:10 2009 +0000
regenerate cache if it's zero sized
Sometimes when systems go a bit haywire, the cache file is
written out as a zero byte file. We're still debugging this,
but in the case of a zero byte cache, just regenerate it anyway
diff --git a/hald/mmap_cache.c b/hald/mmap_cache.c
index 6125cf0..cc1ffa5 100644
--- a/hald/mmap_cache.c
+++ b/hald/mmap_cache.c
@@ -265,6 +265,10 @@ di_cache_coherency_check (gboolean setup_watches)
HAL_INFO(("Cache needs update"));
regen_cache();
did_regen = TRUE;
+ } else if (st.st_size == 0) {
+ HAL_INFO(("Cache zero size, so regenerating"));
+ regen_cache();
+ did_regen = TRUE;
}
} else {
regen_cache();
More information about the hal-commit
mailing list