Re: Feature request: Make head and tail use ioctl_ficlonerange
From:
Vít Novotný
Subject:
Re: Feature request: Make head and tail use ioctl_ficlonerange
Date:
Sat, 1 Jun 2019 23:48:18 +0200
User-agent:
NeoMutt/20170113 (1.7.2)
* Florian Weimer:
> * Vít Novotný:
>
> > with the increasing support for copy-on-write (i.e. reflink) in modern
> > filesystems, it seems reasonable for head(1) and tail(1) to try calling
> > ioctl_ficlonerange(2) where available before copying.
>
> How does this relate to the availability of copy_file_range?
Both system calls first appeared in Linux 4.5, but they both serve a
different purpose:
- copy_file_range enables fast in-kernel copying.
- ioctl_ficlonerange enables CoW sharing of data between files.
Best Regards,
Vít