-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
bpo-41843: Reenable use of sendfile in shutil module on Solaris #23893
Conversation
This PR is stale because it has been open for 30 days with no activity. |
No activity, but still relevant... |
This PR is stale because it has been open for 30 days with no activity. |
This is still relevant. |
c0eff8f
to
b9b0797
Compare
I rebased my changes onto changes introduced with #26024. |
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 looks correct to me.
Doc/library/shutil.rst
Outdated
@@ -465,6 +465,9 @@ file then shutil will silently fallback on using less efficient | |||
|
|||
.. versionchanged:: 3.8 | |||
|
|||
.. versionchanged:: 3.10 |
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.
Should now be changed to 3.11.
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.
Ah yes, it's fixed now. Thanks.
4f658dd
to
5aee88a
Compare
@giampaolo (as an shutil expert), @jcea (as a Solaris platform expert) |
46b9f2b
to
1a3a1b4
Compare
1a3a1b4
to
944c17e
Compare
I am sorry, I just realized that when rebasing my changes, I accidentally used 'solaris' rather than 'sunos' in the platform check. I created #124289 to fix this. |
With the integration of #22040,
os.sendfile
now works as expected and hence its use inshutil
as a fast-copy syscall for file copies should be reenabled (it was disabled with #13675 due to small differences in offset handling and return values).I am not sure what exactly to write into
shutil.rst
as if backported, theversionchanged:: 3.10
part would not be correct, but it wasn't there from the beginning of 3.9 either, and it seems that micro versions are not specified there (or maybe this is not a change that should be backported) ??Also, I enabled the Solaris here explicitly, but maybe reverting the #13675 (and by doing so enabling the use of
sendfile
on every system that has it available, which might actually be just Linux and Solaris...) is a better option.https://bugs.python.org/issue41843