GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-83714: Check for struct statx members in configure by jbosboom · Pull Request #140402 · python/cpython

Conversation

@jbosboom

@jbosboom jbosboom commented Oct 21, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

  • Issue: Add os.statx() function #83714

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jbosboom
Check for struct statx members in configure
3870ace
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
jbosboom requested review from AA-Turner, corona10, emmatyping and erlend-aasland as code owners October 21, 2025 06:55
@bedevere-app bedevere-app Bot added the awaiting review label Oct 21, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Oct 21, 2025
Add os.statx() function #83714
Closed
@jbosboom

jbosboom commented Oct 21, 2025

Copy link
Copy Markdown
Contributor Author

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cmaloney cmaloney added the skip news label Oct 21, 2025
@vstinner
vstinner merged commit 60df1d7 into python:main Oct 21, 2025
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting review label Oct 21, 2025
@vstinner

vstinner commented Oct 21, 2025

Copy link
Copy Markdown
Member

LGTM. Merged, thank you.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zooba

zooba commented Oct 21, 2025

Copy link
Copy Markdown
Member

would appreciate if you tested that this builds for you

Yep, builds fine now. Thanks!

jbosboom and efimov-mikhail reacted with thumbs up emoji vstinner reacted with hooray emoji
All reactions
  • 👍 2 reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
@jbosboom @StanFromIreland
pythongh-83714: Check for struct statx members in configure (python#1…
5f781a1
…40402)

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@erlend-aasland erlend-aasland Awaiting requested review from erlend-aasland erlend-aasland is a code owner
@corona10 corona10 Awaiting requested review from corona10 corona10 is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@emmatyping emmatyping Awaiting requested review from emmatyping emmatyping is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@jbosboom @vstinner @zooba @cmaloney
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.