-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-89928: Fix integer conversion of device numbers. #31794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-89928: Fix integer conversion of device numbers. #31794
Conversation
Fix os.major(), os.minor() and os.makedev(). Support device numbers larger than 2**63-1. Support non-existent device number (NODEV).
🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit c2d082b 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
This missed the boat for inclusion in Python 3.9 which accepts security fixes only as of today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has merge conflicts now.
When you're done making the requested changes, leave the comment: |
!buildbot freebsd |
🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 17c02dc 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
I have made the requested changes; please review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the update.
@serhiy-storchaka: Do you want to merge this PR? |
if sys.platform == 'linux': | ||
NODEV = -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am going to expose posix.NODEV
, but this is a different issue.
🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 97e71d3 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
) Fix os.major(), os.minor() and os.makedev(). Support device numbers larger than 2**63-1. Support non-existent device number (NODEV). (cherry picked from commit 7111d96) Co-authored-by: Serhiy Storchaka <[email protected]>
Sorry, @serhiy-storchaka, I could not cleanly backport this to
|
GH-120053 is a backport of this pull request to the 3.13 branch. |
…onGH-31794) Fix os.major(), os.minor() and os.makedev(). Support device numbers larger than 2**63-1. Support non-existent device number (NODEV). (cherry picked from commit 7111d96) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-120054 is a backport of this pull request to the 3.12 branch. |
Thanks for the fix @serhiy-storchaka! |
…H-120053) Fix os.major(), os.minor() and os.makedev(). Support device numbers larger than 2**63-1. Support non-existent device number (NODEV). (cherry picked from commit 7111d96) Co-authored-by: Serhiy Storchaka <[email protected]>
Fix os.major(), os.minor() and os.makedev().
Support device numbers larger than 2**63-1.
Support non-existent device number (NODEV).
https://bugs.python.org/issue45767