X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Freadahead-common.h;h=7add62613f91e79681d9a988d4190548dbc331bc;hp=d39dd5b41d7464b35e9f529c25109ae4fa5111cd;hb=5b40d54851da5934a0c819b35d6d5338039ee923;hpb=41a598e21a9f6cfe8dad7759c3c9facd55774acf diff --git a/src/readahead-common.h b/src/readahead-common.h index d39dd5b41..7add62613 100644 --- a/src/readahead-common.h +++ b/src/readahead-common.h @@ -23,14 +23,25 @@ ***/ #include +#include + +#include "macro.h" #define READAHEAD_FILE_SIZE_MAX (128*1024*1024) -#define READAHEAD_FILES_MAX (16*1024) -int file_verify(int fd, const char *fn, struct stat *st); +int file_verify(int fd, const char *fn, off_t file_size_max, struct stat *st); int fs_on_ssd(const char *p); bool enough_ram(void); +int open_inotify(void); + +typedef struct ReadaheadShared { + pid_t collect; + pid_t replay; +} _packed_ ReadaheadShared; + +ReadaheadShared *shared_get(void); + #endif