Svetlitski / fcp

A significantly faster alternative to the classic Unix cp(1) command, copying large files and directories in a fraction of the time.
BSD 3-Clause "New" or "Revised" License
734 stars 17 forks source link

support copy-on-write on Linux #11

Open hyperfekt opened 2 years ago

hyperfekt commented 2 years ago

For filesystems that support it, Linux offers the FICLONE operation of the ioctl syscall which results in what is commonly called a reflink and defers creating another copy of the data until necessary. This could speed up copying on Linux dramatically in some cases.