***/
#include <sys/stat.h>
+#include <sys/types.h>
+
+#include "macro.h"
#define READAHEAD_FILE_SIZE_MAX (128*1024*1024)
int file_verify(int fd, const char *fn, off_t file_size_max, struct stat *st);
int fs_on_ssd(const char *p);
+int fs_on_read_only(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);
+
+int bump_request_nr(const char *p);
+
#endif