Skip to content

Need copy_file_range() which uses FSCTL_DUPLICATE_EXTENTS_TO_FILE #310

@aureliencouderc

Description

@aureliencouderc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions