Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kulikjak
Copy link
Contributor

@kulikjak kulikjak commented Dec 22, 2020

With the integration of #22040, os.sendfile now works as expected and hence its use in shutil 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, the versionchanged:: 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

@github-actions
Copy link

github-actions bot commented Jan 22, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jan 22, 2021
@kulikjak
Copy link
Contributor Author

kulikjak commented Jan 22, 2021

No activity, but still relevant...

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Jan 23, 2021
@github-actions
Copy link

github-actions bot commented Feb 23, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Feb 23, 2021
@kulikjak
Copy link
Contributor Author

kulikjak commented Feb 23, 2021

This is still relevant.

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Feb 24, 2021
@kulikjak kulikjak force-pushed the reenable-Solaris-sendfile branch from c0eff8f to b9b0797 Compare May 21, 2021
@kulikjak
Copy link
Contributor Author

kulikjak commented May 21, 2021

I rebased my changes onto changes introduced with #26024.

FFY00
FFY00 approved these changes May 21, 2021
Copy link
Member

@FFY00 FFY00 left a comment

This looks correct to me.

@@ -465,6 +465,9 @@ file then shutil will silently fallback on using less efficient

.. versionchanged:: 3.8

.. versionchanged:: 3.10
Copy link
Member

@FFY00 FFY00 May 21, 2021

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.

Copy link
Contributor Author

@kulikjak kulikjak May 21, 2021

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.

@kulikjak kulikjak force-pushed the reenable-Solaris-sendfile branch from 4f658dd to 5aee88a Compare Aug 19, 2022
@iritkatriel iritkatriel added 3.12 and removed 3.12 labels Sep 10, 2022
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.

None yet

6 participants