Investigate use of os.copy_file_range for NFS

Bug #1848568 reported by Eric Harney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Wishlist
Unassigned

Bug Description

The NFS driver currently calls shutil.copyfile() in _copy_volume_image().

Python 3.8 now supplies an os.copy_file_range() method:
https://docs.python.org/3.8/library/os.html#os.copy_file_range

This should allow offloading this copy operation to the NFS server when using a new enough environment.

shutil may do this itself eventually, but it doesn't yet:
https://bugs.python.org/issue37159

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.