}
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);
+ log_debug("Not preloading file %s with size out of bounds %lli", fn, (unsigned long long) st->st_size);
return 0;
}
int fd;
ReadaheadShared *m = NULL;
+ mkdir("/dev/.systemd", 0755);
+ mkdir("/dev/.systemd/readahead", 0755);
+
if ((fd = open("/dev/.systemd/readahead/shared", O_CREAT|O_RDWR|O_CLOEXEC, 0644)) < 0) {
log_error("Failed to create shared memory segment: %m");
goto finish;