mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-17 05:40:54 +00:00
readahead: never readahead temporary files since their names tend not to be stable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user