Skip to content

Use copy_file_range(2) only on Linux >= 5.3 #86718

Closed
@kubo39

Description

@kubo39

In case copy_file_rang(2), Linux's man page says:

A major rework of the kernel implementation occurred in 5.3.
Areas of the API that weren't clearly defined were clarified and
the API bounds are much more strictly checked than on earlier
kernels. Applications should target the behaviour and
requirements of 5.3 kernels.
First support for cross-filesystem copies was introduced in Linux
5.3. Older kernels will return -EXDEV when cross-filesystem
copies are attempted.

And at least Go's Issue shows that it's broken in CIFS.
I think it should be fixed like Go did.

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