Skip to content

Conversation

jbosboom
Copy link
Contributor

@jbosboom jbosboom commented Oct 21, 2025

Some systems have the definitions of the mask bits without having the corresponding members in struct statx. Add configure checks for members added after Linux 4.11 (when statx itself was added).

Here's a bug report to qemu regarding stx_mnt_id being missing. The reporter has the proper kernel userspace API header with stx_mnt_id, but it's not being used for some reason. util-linux got a similar report. (Credit to @zooba for finding these reports.)

cc @vstinner
cc @zooba for reporting they have a system with this problem -- would appreciate if you tested that this builds for you


📚 Documentation preview 📚: https://cpython-previews--140402.org.readthedocs.build/

Some systems have the definitions of the mask bits without having the
corresponding members in struct statx.  Add configure checks for members
added after Linux 4.11 (when statx itself was added).
@jbosboom
Copy link
Contributor Author

#140185 was skip-news so I assume this is also skip-news.

@vstinner vstinner merged commit 60df1d7 into python:main Oct 21, 2025
50 checks passed
@vstinner
Copy link
Member

LGTM. Merged, thank you.

@zooba
Copy link
Member

zooba commented Oct 21, 2025

would appreciate if you tested that this builds for you

Yep, builds fine now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants