[PATCH 0/1] copyfilerange: new command to call copy-file-range

Dick Marinus
2025-12-03T19:26:13Z

Hello!

Sorry for the repost, I noticed my previous mail wasn't properly signed
and was probably blocked as spam.

I finally finished my work on a command to create reflinked files. Since
my last post on this mailing list I found the copy_file_range system
call and I named this command after it.

I decided to contribute this command first, when this is done I will
post another command to find duplicate blocks in two files, which can
serve as input of this command.

This command should be usable for other use cases as well, it's also
possible to create sparse files and it can be used instead of how many
people use dd if= of= skip= count=

I tried to implement everything in a similar way as used by the other
sources in this project (and I learned a lot from it).

Nothing is set in stone although I want to keep to the Unix philosophy
and not any wild features to this command.

Please let me know what can (or must) be added or improved.

Dick Marinus (1):
copyfilerange: new command to call copy-file-range