Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
serhiy-storchaka commented Mar 10, 2022 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
Fix os.major(), os.minor() and os.makedev(). Support device numbers larger than 2**63-1. Support non-existent device number (NODEV).
bedevere-bot commented Mar 10, 2022
🤖 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. |
ambv commented May 17, 2022
This missed the boat for inclusion in Python 3.9 which accepts security fixes only as of today. |
iritkatriel left a comment
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.
bedevere-bot commented Nov 27, 2022
When you're done making the requested changes, leave the comment: |
serhiy-storchaka commented Dec 17, 2023
!buildbot freebsd |
bedevere-bot commented Dec 17, 2023
🤖 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:
|
serhiy-storchaka commented Dec 17, 2023
I have made the requested changes; please review again. |
vstinner left a comment
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.
vstinner commented Jun 2, 2024
@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.
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.
FWIW, musl is another C library implementation on Linux ( like glibc ) which does not provide NODEV, so relying on platform to provide this definition may not be true always.
bedevere-bot commented Jun 3, 2024
🤖 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. |
vstinner commented Jun 4, 2024
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