[issue24564] shutil.copytree fails when copying NFS to NFS

Min RK report at bugs.python.org
Sat Jul 4 23:19:23 CEST 2015


Min RK added the comment:

On a bit of further investigation, the NFS files have an xattr `system.nfs4_acl`. This can be read, but attempting to write it fails with EINVAL. Attempting to copy from NFS to non-NFS fails with ENOTSUP, which is caught and ignored, but copying from NFS to NFS raises EINVAL, which raises.

Adding `EINVAL` to the ignored errnos would fix the problem, but might hide real failures (I'm not sure about the real failures, but it seems logical).

Since the `copy_function` is customizable to switch between `copy` and `copy2`, making copystat optional on files, perhaps the `copystat` should be optional on directories, as well.

----------
nosy: +minrk

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24564>
_______________________________________


More information about the Python-bugs-list mailing list