readahead: preload pack file

This commit is contained in:
Lennart Poettering 2010-09-29 03:11:35 +02:00
parent cf895f3076
commit bdb0e14d27

View file

@ -145,6 +145,8 @@ static int replay(const char *root) {
goto finish;
}
posix_fadvise(fileno(pack), 0, 0, POSIX_FADV_WILLNEED);
if ((inotify_fd = open_inotify()) < 0) {
r = inotify_fd;
goto finish;