Hi Wout,

You said:

> sorry if this was already requested, I couldn't find it.
>
> Darwin has support for the http://www.manpagez.com/man/2/clonefile/ call,
> and it would be great if it were used when available for
> reflink==auto.

Thanks for the suggestion and sorry for the late reply.

This was added in coreutils-9.1, released 2022-04-15, with the following
commit:

    commit 5e36c0ce078a65c7dac6ac5ebdfb0cf096856427
    Author:     Paul Eggert <[email protected]>
    AuthorDate: Sun Nov 21 15:07:18 2021 -0800
    Commit:     Paul Eggert <[email protected]>
    CommitDate: Sun Nov 21 19:13:03 2021 -0800
    
        cp: clone on macOS
        
        * configure.ac: Check for fclonefileat.
        * src/copy.c [HAVE_FCLONEFILEAT && !USE_XATTR]:
        Include <sys/clonefile.h>.
        (copy_reg): If possible, use fclonefileat to clone.

Closing this bug now.

Collin



Reply via email to