diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-09-30 00:52:48 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-05 19:50:00 +0200 |
commit | 0840ce2d4944bf1b14ed92f10db220991c1e94c9 (patch) | |
tree | a4cca4973bef99485eb5f957540db4bd4802f6a6 | |
parent | 7e911837c1da99562f527c1cc947a6a5e8c78b6e (diff) |
readahead: ignore deleted files
-rw-r--r-- | src/readahead-collect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 75e7a2870b..a9f544dd3a 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -398,8 +398,8 @@ static int collect(const char *root) { char_array_0(fn); if ((k = readlink_malloc(fn, &p)) >= 0) { - if (startswith(p, "/tmp") || + endswith(p, " (deleted)") || hashmap_get(files, p)) /* Not interesting, or * already read */ |