diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-09-25 14:35:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-25 14:35:53 +0200 |
commit | 437dca8b2f05a83e5c1df41226992c8d68b80007 (patch) | |
tree | 3c3e3e0ddf1338f4353357c44741224e3f1b323d /src/readahead-collect.c | |
parent | 75a010e0b790a2cf3c26408f99927bdb37011a32 (diff) |
readahead: never readahead temporary files since their names tend not to be stable
Diffstat (limited to 'src/readahead-collect.c')
-rw-r--r-- | src/readahead-collect.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 47095b1f7c..c8490b5d3c 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -324,8 +324,10 @@ static int collect(const char *root) { if ((k = readlink_malloc(fn, &p)) >= 0) { - if (hashmap_get(files, p)) - /* Already read */ + if (startswith(p, "/tmp") || + hashmap_get(files, p)) + /* Not interesting, or + * already read */ free(p); else { unsigned long ul; |