-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bp/FileHandler: check the path before opening a file
This avoids getting ENAMETOOLONG or ENOTDIR which would result in status 500. (On Ceph, I have observed EINVAL responses from MDS instead of ENOTDIR for opening a path ending with a slash. That's a Ceph MDS bug, I guess, but it hopefully becomes unreachable with this check.)
- Loading branch information
1 parent
dc6b350
commit 91e23b0
Showing
3 changed files
with
85 additions
and
0 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
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
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