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.
For filesystems that support it, Linux offers the
FICLONE
operation of theioctl
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.