[issue26826] Expose new copy_file_range() syscall in os module.

Giampaolo Rodola' report at bugs.python.org
Tue Jun 4 11:07:02 EDT 2019


Giampaolo Rodola' <g.rodola at gmail.com> added the comment:

I think data deduplication / CoW / reflink copy is better implemented via FICLONE. "cp --reflink" uses it, I presume because it's older than copy_file_range(). I have a working patch adding CoW copy support for Linux and OSX (but not Windows). I think that should be exposed as a separate shutil.reflink() though, and copyfile() should just do a standard copy.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26826>
_______________________________________


More information about the Python-bugs-list mailing list