chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
main: don't check if /usr really is a mount point, since it is fine if it is passed...
[elogind.git]
/
src
/
readahead-common.h
diff --git
a/src/readahead-common.h
b/src/readahead-common.h
index d39dd5b41d7464b35e9f529c25109ae4fa5111cd..167df316d93da5b8aa83f98e632dd2c56d7a7a78 100644
(file)
--- a/
src/readahead-common.h
+++ b/
src/readahead-common.h
@@
-23,14
+23,28
@@
***/
#include <sys/stat.h>
***/
#include <sys/stat.h>
+#include <sys/types.h>
+
+#include "macro.h"
#define READAHEAD_FILE_SIZE_MAX (128*1024*1024)
#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);
int fs_on_ssd(const char *p);
+int fs_on_read_only(const char *p);
bool enough_ram(void);
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
#endif