Improvements
------------
- cache garbage collector: reduce filesystem operations when idle (!946)
+- cache: missing filesystem support for pre-allocation is no longer fatal (#549)
Knot Resolver 5.0.1 (2020-02-05)
}
ret = posix_fallocate(fd, 0, mapsize);
- if (ret != 0) {
+ if (ret == EINVAL) {
+ /* POSIX says this can happen when the feature isn't supported by the FS.
+ * We haven't seen this happen on Linux+glibc but it was reported on FreeBSD.*/
+ kr_log_info("[cache] space pre-allocation failed and ignored; "
+ "your (file)system probably doesn't support it.\n");
+ } else if (ret != 0) {
mdb_txn_abort(txn);
stats->close++;
mdb_env_close(env->env);