ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
540 stars 66 forks source link

eio_linux: add fallback for statx on older kernels #624

Closed talex5 closed 11 months ago

talex5 commented 11 months ago

If statx isn't available, open the path and use fstat instead.

See: io-uring: Make statx API stable https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1b6fe6e0dfecf8c82a64fb87148ad9333fa2f62e

(this is an alternative to #622 that doesn't break CI)