Skip to content

Conversation

@sunfishcode
Copy link
Member

In older versions of Docker, statx can fail with EPERM meaning it
isn't available. Recognize this, and translate it into ENOSYS. Also,
have statx remember this and fail quickly in future calls.

This is more emulation than rustix usually likes to do, but in this
case, this is the behavior seems likely to be what most users will
want, and we might as well put the code in one place.

Fixes #352.

In older versions of Docker, `statx` can fail with `EPERM` meaning it
isn't available. Recognize this, and translate it into `ENOSYS`. Also,
have `statx` remember this and fail quickly in future calls.

This is more emulation than rustix usually likes to do, but in this
case, this is the behavior seems likely to be what most users will
want, and we might as well put the code in one place.

Fixes #352.
@sunfishcode sunfishcode force-pushed the sunfishcode/is-statx-available branch from 860d7a0 to 19832e2 Compare June 7, 2022 12:51
@sunfishcode sunfishcode merged commit 8994c30 into main Jun 13, 2022
@sunfishcode sunfishcode deleted the sunfishcode/is-statx-available branch June 13, 2022 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect statx support properly in Docker

2 participants