Re:Remove first 300M lines from 700 GB file on 1TB disk
by yencabulator on Wednesday September 23, 2020 @07:46PM
(#24573625)
Extent-based filesystems have no problem with that, and performance wouldn't be impacted either. The preserved tail of the first extent would have to copied / CoWed, that's it.
https://man7.org/linux/man-pages/man2/ioctl_ficlonerange.2.h...
Of course performance would suffer due to non-aligned access, but just as for regular files one could demand aligned access for optimal speed.