forked from libuv/libuv
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's been reported that copy_file_range() on a CIFS mount fails with an EPERM error, even though the source and target files have the appropriate permissions. This is probably a variation on the EPERM error that libuv handles when it tries to fchmod() a file on a CIFS mount that hasn't been mounted with the "noperm" option, so let's handle it here too. This commit applies minor refactoring because the "work around file system bugs" section got quite unwieldy. I also snuck in a bug fix where the workaround for buggy CephFS mounts disabled copy_file_range() permanently. Fixes: libuv#3322
- Loading branch information
1 parent
48e0427
commit 3368d0b
Showing
1 changed file
with
79 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters