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

github.com

Tin mới

illia-v:fix-issue-81340

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Use copy_file_range() in shutil.copyfile() (server-side copy) #81340

Move determining a block size for copying to a separate function

Add copy-on-write support to shutil

cpython/.github/CODEOWNERS

https://github.com/torvalds/linux/blob/1e57930e9f4083ad5854ab6eadffe790a8167fb4/fs/read_write.c#L1491-L1507

@giampaolo copy_file_range does try cloning. Take a look at https://stackoverflow.com/a/65518879 and https://github.com/torvalds/linux/blob/1e57930e9f4083ad5854ab6eadffe790a8167fb4/fs/read_write.c#L1491-L1507.

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Update comments in _determine_linux_fastcopy_blocksize

Update docs to link to copy_file_range as a Python function

Update os.copy_file_range documentation #93180

Replace reflink dependency with an implementation using Python stdlib primitives hermetoproject/hermeto#483

[WIP] GH-73991: Add os.copy() and friends #119079

GH-73991: Add pathlib.Path.copy() #119058

Merge branch 'main' into fix-issue-81340

Drop the allow_reflink argument

View reviewed changes

Remove duplicate change entries from docs

View reviewed changes

pathlib.Path.copy()

pathlib.Path.copy()

pathlib.Path.copy()

pathlib.Path.copy()

Merge branch 'main' into fix-issue-81340

Merge branch 'main' into fix-issue-81340

: Use copy_file_range in shutil.copyfile copy functions (

Use BTRFS reflink for safer deduplication 9001/copyparty#201

optimize package installation for space and speed by using copy-on-write file clones ("reflinks") and storing wheel cache unpacked pypa/pip#11092