[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2020-12-29 Thread Albert Zeyer
Albert Zeyer added the comment: According to the man page of copy_file_range (https://man7.org/linux/man-pages/man2/copy_file_range.2.html), copy_file_range also should support copy-on-write: > copy_file_range() gives filesystems an opportunity to implement > "copy acceleration"

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Nope, it doesn't (see man page). We can simply use FICLONE (cp does the same). -- ___ Python tracker ___

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: > issue37157 is for reflink / CoW copy, this one is not. Oh sorry, it seems like I misunderstood copy_file_range(). So it doesn't use/support CoW? -- ___ Python tracker

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: issue37157 is for reflink / CoW copy, this one is not. -- ___ Python tracker ___ ___

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: Oh, I already created https://bugs.python.org/issue37157 Can we move the discussion there? -- ___ Python tracker ___

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-04 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- title: Have shutil.copyfile() use copy_file_range() -> Use copy_file_range() in shutil.copyfile() (server-side copy) ___ Python tracker ___