chiark / gitweb /
readahead: ignore deleted files
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Sep 2010 22:52:48 +0000 (00:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Oct 2010 17:50:00 +0000 (19:50 +0200)
src/readahead-collect.c

index 75e7a28..a9f544d 100644 (file)
@@ -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 */