mirror of
https://git.proxmox.com/git/systemd
synced 2026-08-12 20:35:23 +00:00
readahead: never readahead temporary files since their names tend not to be stable
This commit is contained in:
parent
75a010e0b7
commit
437dca8b2f
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user