BtrFS supports ioctl() calls for clone data. It provides two options, one is BTRFS_IOC_CLONE, another is BTRFS_IOC_CLONE_RANGE They do almost same operations.