René's URL Explorer Experiment


Title: gh-81340: Use `copy_file_range` in `shutil.copyfile` copy functions by illia-v · Pull Request #93152 · python/cpython · GitHub

Open Graph Title: gh-81340: Use `copy_file_range` in `shutil.copyfile` copy functions by illia-v · Pull Request #93152 · python/cpython

X Title: gh-81340: Use `copy_file_range` in `shutil.copyfile` copy functions by illia-v · Pull Request #93152 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This makes shutil.copyfile prefer the copy_file_range system call on Linux. copy_file_range gives filesystems an opportunity to implement the use of reflinks or server-side copy, but we cannot dete...

X Description: This makes shutil.copyfile prefer the copy_file_range system call on Linux. copy_file_range gives filesystems an opportunity to implement the use of reflinks or server-side copy, but we cannot dete...

Opengraph URL: https://github.com/python/cpython/pull/93152

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:297f03e4-c458-7db9-8ddc-0d2ccd5ecb85
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA9BE:2D2FEF:1936685:21E0547:6969AE54
html-safe-noncee860e337dc3619d3f18ca6ff07301beeb38278352be82c503a476367b2da3698
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUJFOjJEMkZFRjoxOTM2Njg1OjIxRTA1NDc6Njk2OUFFNTQiLCJ2aXNpdG9yX2lkIjoiNDU0NDA5NzE1OTI0MDg1NTEyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf3b9371d87ead4f9cea0073e5f97b9f67f5b354e246eb0f473fa1a6a989d9214
hovercard-subject-tagpull_request:944822682
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/93152/commits
twitter:imagehttps://opengraph.githubassets.com/fe4c3d6b932c90c7b2ad1c3c0a7e87ada5280019d7db59701eaef2058d82eeb9/python/cpython/pull/93152
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fe4c3d6b932c90c7b2ad1c3c0a7e87ada5280019d7db59701eaef2058d82eeb9/python/cpython/pull/93152
og:image:altThis makes shutil.copyfile prefer the copy_file_range system call on Linux. copy_file_range gives filesystems an opportunity to implement the use of reflinks or server-side copy, but we cannot dete...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameillia-v
hostnamegithub.com
expected-hostnamegithub.com
None24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release124667f43168afb6c9c03b7c02eb5b1d2e1be3d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/93152/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F93152%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F93152%2Fcommits
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/93152/commits
Reloadhttps://github.com/python/cpython/pull/93152/commits
Reloadhttps://github.com/python/cpython/pull/93152/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/93152/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/93152/commits
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
zoobahttps://github.com/zooba
python:mainhttps://github.com/python/cpython/tree/main
illia-v:fix-issue-81340https://github.com/illia-v/cpython/tree/fix-issue-81340
Conversationhttps://github.com/python/cpython/pull/93152
Commits9 (9)https://github.com/python/cpython/pull/93152/commits
Checkshttps://github.com/python/cpython/pull/93152/checks
Files changedhttps://github.com/python/cpython/pull/93152/files
gh-81340: Use copy_file_range in shutil.copyfile copy functionshttps://github.com/python/cpython/pull/93152/commits#top
zoobahttps://github.com/zooba
python:mainhttps://github.com/python/cpython/tree/main
illia-v:fix-issue-81340https://github.com/illia-v/cpython/tree/fix-issue-81340
Move determining a block size for copying to a separate functionhttps://github.com/python/cpython/pull/93152/commits/985159a3df7ae4bb4434c503eaa3268a95aa112a
https://github.com/illia-v
illia-vhttps://github.com/python/cpython/commits?author=illia-v
985159ahttps://github.com/python/cpython/pull/93152/commits/985159a3df7ae4bb4434c503eaa3268a95aa112a
https://github.com/python/cpython/tree/985159a3df7ae4bb4434c503eaa3268a95aa112a
Add copy-on-write support to shutilhttps://github.com/python/cpython/pull/93152/commits/e4fa33b870cc890ac38857a68d7595bf5aa6f7a6
https://github.com/illia-v
illia-vhttps://github.com/python/cpython/commits?author=illia-v
e4fa33bhttps://github.com/python/cpython/pull/93152/commits/e4fa33b870cc890ac38857a68d7595bf5aa6f7a6
https://github.com/python/cpython/tree/e4fa33b870cc890ac38857a68d7595bf5aa6f7a6
Update comments in `_determine_linux_fastcopy_blocksize`https://github.com/python/cpython/pull/93152/commits/47b083458a87f5a2933307c549ef0557dbada1b5
illia-vhttps://github.com/python/cpython/commits?author=illia-v
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
47b0834https://github.com/python/cpython/pull/93152/commits/47b083458a87f5a2933307c549ef0557dbada1b5
https://github.com/python/cpython/tree/47b083458a87f5a2933307c549ef0557dbada1b5
Update docs to link to `copy_file_range` as a Python functionhttps://github.com/python/cpython/pull/93152/commits/474859cbe12ded1bee2b96b1e81d4dd5696fdf5f
https://github.com/illia-v
illia-vhttps://github.com/python/cpython/commits?author=illia-v
474859chttps://github.com/python/cpython/pull/93152/commits/474859cbe12ded1bee2b96b1e81d4dd5696fdf5f
https://github.com/python/cpython/tree/474859cbe12ded1bee2b96b1e81d4dd5696fdf5f
Merge branch 'main' into fix-issue-81340https://github.com/python/cpython/pull/93152/commits/184689516b8895b966aa1c9b798cbe19f3b454e4
https://github.com/illia-v
illia-vhttps://github.com/python/cpython/commits?author=illia-v
1846895https://github.com/python/cpython/pull/93152/commits/184689516b8895b966aa1c9b798cbe19f3b454e4
https://github.com/python/cpython/tree/184689516b8895b966aa1c9b798cbe19f3b454e4
Drop the `allow_reflink` argumenthttps://github.com/python/cpython/pull/93152/commits/41d48d9cdfcee263c980405cf67d542d47c7f6a4
https://github.com/illia-v
illia-vhttps://github.com/python/cpython/commits?author=illia-v
41d48d9https://github.com/python/cpython/pull/93152/commits/41d48d9cdfcee263c980405cf67d542d47c7f6a4
https://github.com/python/cpython/tree/41d48d9cdfcee263c980405cf67d542d47c7f6a4
Remove duplicate change entries from docshttps://github.com/python/cpython/pull/93152/commits/e8feaca42f23310cc1f01bcb20b67ab38f05f9ef
https://github.com/illia-v
illia-vhttps://github.com/python/cpython/commits?author=illia-v
e8feacahttps://github.com/python/cpython/pull/93152/commits/e8feaca42f23310cc1f01bcb20b67ab38f05f9ef
https://github.com/python/cpython/tree/e8feaca42f23310cc1f01bcb20b67ab38f05f9ef
Merge branch 'main' into fix-issue-81340https://github.com/python/cpython/pull/93152/commits/dc07a54bf46213d13f2cd25f063b616ec7ea4697
https://github.com/illia-v
illia-vhttps://github.com/python/cpython/commits?author=illia-v
dc07a54https://github.com/python/cpython/pull/93152/commits/dc07a54bf46213d13f2cd25f063b616ec7ea4697
https://github.com/python/cpython/tree/dc07a54bf46213d13f2cd25f063b616ec7ea4697
Merge branch 'main' into fix-issue-81340https://github.com/python/cpython/pull/93152/commits/cb1dae8c8a8acd252d536e81a0a14fe55836cf30
https://github.com/zooba
zoobahttps://github.com/python/cpython/commits?author=zooba
cb1dae8https://github.com/python/cpython/pull/93152/commits/cb1dae8c8a8acd252d536e81a0a14fe55836cf30
https://github.com/python/cpython/tree/cb1dae8c8a8acd252d536e81a0a14fe55836cf30
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.