On Tue, Apr 15, 2025 at 11:33:26AM +0100, Philip Rowlands wrote:
I see the logic, but in this case I'm using cp not to duplicate, just to sparse-ify, then delete the original.It would be fair to say "don't use cp if you don't want a copy", but there aren't many tools which can do this. Probably `fallocate --dig-holes` is better, as seen from its manpage:
Yes, fallocate is the right tool here.