Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Lib/shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ def _fastcopy_sendfile(fsrc, fdst):
_USE_CP_SENDFILE = False
raise _GiveupOnFastCopy(err)

if err.errno == errno.ENODATA:
# In rare cases sendfile() on Linux Lsture call
# returns ENODATA.
_USE_CP_SENDFILE = False
raise _GiveupOnFastCopy(err)

if err.errno == errno.ENOSPC: # filesystem is full
raise err from None

Expand Down
Loading