Use quotactl_fd syscall when available
As mentioned in cms-dev/cms#1530, this is necessary to use tmpfs quotas.
I made it conditional on whether SYS_quotactl_fd is defined. This has been true since kernel 5.14 released around 4 years ago, your choice if you want to keep the old code to support older kernels.
(Also, it's possible that someone might be running a newer distro with an older kernel, e.g. when using docker, in which case SYS_quotactl_fd might be defined, but might not work at runtime. But I think in this case we can just say to build isolate on the right distro.)
Also, added a better error message for when quotactl fails with ESRCH, because the default one was quite confusing in my opinion.
合并状态:已合并 合并于 2025-09-01 关闭于 2025-09-01 0 条评论