bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24399: FICLONE for coreutils; copy_file_range?


From: Paul Eggert
Subject: bug#24399: FICLONE for coreutils; copy_file_range?
Date: Fri, 9 Sep 2016 15:46:14 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

I installed the attached patch so that cp etc. can use the FICLONE API that appears to be what the Linux kernel has standardized on for this sort of thing.

I notice that the Linux 4.5 kernel has added a copy_file_range syscall that is said to clone in some cases, but this isn't yet declared in the /usr/include headers on Fedora 24 (4.7.2 kernel). Also, its man page says it uses a size_t (not off_t) to count the number of bytes to be copied, which is a strange choice for a file-copying API. What's up with that?

Attachment: 0001-cp-use-FICLONE-instead-of-BTRFS_IOC_CLONE.patch
Description: Source code patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]