summaryrefslogtreecommitdiff
path: root/src/readahead-common.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-25 15:39:38 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-25 15:39:38 +0200
commit8260358d5a04912223e8a0062b70a621e2241e96 (patch)
tree0ba5a67ad519b86071cabe217f31d8b5871f999c /src/readahead-common.c
parent437dca8b2f05a83e5c1df41226992c8d68b80007 (diff)
readahead: parse command line arguments
Diffstat (limited to 'src/readahead-common.c')
-rw-r--r--src/readahead-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/readahead-common.c b/src/readahead-common.c
index 88441dbe1c..a1016a3ede 100644
--- a/src/readahead-common.c
+++ b/src/readahead-common.c
@@ -29,7 +29,7 @@
#include "readahead-common.h"
#include "util.h"
-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) {
assert(fd >= 0);
assert(fn);
assert(st);
@@ -44,7 +44,7 @@ int file_verify(int fd, const char *fn, struct stat *st) {
return 0;
}
- if (st->st_size <= 0 || st->st_size > READAHEAD_FILE_SIZE_MAX) {
+ if (st->st_size <= 0 || st->st_size > file_size_max) {
log_debug("Not preloading file %s with size out of bounds %zi", fn, st->st_size);
return 0;
}