chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7e91183
)
readahead: ignore deleted files
author
Lennart Poettering
<lennart@poettering.net>
Wed, 29 Sep 2010 22:52:48 +0000
(
00:52
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 5 Oct 2010 17:50:00 +0000
(19:50 +0200)
src/readahead-collect.c
patch
|
blob
|
history
diff --git
a/src/readahead-collect.c
b/src/readahead-collect.c
index 75e7a2870bad679b937dadfc38757dbd6252ccf8..a9f544dd3ac4a29e30df58b139642a3ef88daa9b 100644
(file)
--- 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) {
char_array_0(fn);
if ((k = readlink_malloc(fn, &p)) >= 0) {
-
if (startswith(p, "/tmp") ||
if (startswith(p, "/tmp") ||
+ endswith(p, " (deleted)") ||
hashmap_get(files, p))
/* Not interesting, or
* already read */
hashmap_get(files, p))
/* Not interesting, or
* already read */