Need copy_file_range() which uses FSCTL_DUPLICATE_EXTENTS_TO_FILE
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c
- Domain
- operating-systems
Research direction
Start by tracing the MSYS2 runtime implementation or entry point for copy_file_range() and how it maps file-copy operations on Windows. Investigate FSCTL_DUPLICATE_EXTENTS_TO_FILE and verify that coreutils cp and mv can use the new behavior on ReFS without breaking ordinary filesystems; done means large-file copies on ReFS use block cloning and retain a fallback.
Written by the indexing model from the issue text.
Description
MSYS2 file copy is EXTREMELY slow for big files on REFS on Windows 11.
Since Win10 is soon End-of-support MSYS2 more and more people use REFS, and there MSYS2 is slow.
It turns out that cmd.exe and powershell.exe cheat a bit when copying files on REFS: They do not copy data, they clone blocks via FSCTL_DUPLICATE_EXTENTS_TO_FILE.
coreutils cp and mv could do the same IF MSYS2 would implement copy_file_range() backed by FSCTL_DUPLICATE_EXTENTS_TO_FILE.
- Dominant language
- C
- Stars
- 240
- Forks
- 60
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from msys2/msys2-runtime
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
msys2/msys2-runtime#363 ·
-
Arrow keys in tmux panes produce bare letters instead of escape sequences (regression in 3.6.10-3) Open
Difficulty 3/5 1-2 days Newbie friendliness 64/100
msys2/msys2-runtime#365 · 5 comments · 1 reaction ·
-
bug
Difficulty 5/5 Over a week Newbie friendliness 35/100
msys2/msys2-runtime#362 · 7 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
msys2/msys2-runtime#358 · 3 comments · 3 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
msys2/msys2-runtime#354 · 1 comment ·
All issues in msys2/msys2-runtime
Similar issues
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·
-
bug Self Built Image SNAPSHOT Supported Device target/ramips
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100