sapling/eden/fs
Xavier Deguillard f7c66f9786 nfs: fix non-UTF8 name handling
Summary:
For non-UTF8 names, the PathComponent constructor would raise an exception, and
since that exception wasn't caught by the handler itself, it would bubble up to
the RPC server and a generic "server IO error" would be sent back to the
client. Since non-UTF8 names aren't a server error, but an invalid argument, we
should instead return a different error.

Unfortunately, EILSEQ isn't an error that an NFS server can return, instead
let's use EINVAL as the argument is clearly invalid.

Reviewed By: chadaustin

Differential Revision: D28482032

fbshipit-source-id: b59044f1a76f7eac79e2df07356a0aeafa22e3c5
2021-05-26 14:05:48 -07:00
..
benchharness add 4k random writes benchmark 2020-07-14 16:13:37 -07:00
benchmarks benchmarks: add a globbing benchmark 2021-05-21 19:26:46 -07:00
cli add a v2 SNAPSHOT format 2021-05-21 10:53:16 -07:00
cli_rs Resolve bare_trait_objects warnings in path components 2021-05-19 22:03:56 -07:00
config hg: promote batch size to a configuration option 2021-05-24 19:17:17 -07:00
docs run linter in eden/fs/docs 2021-01-25 16:13:54 -08:00
fuse fuse: use ImmediateFuture in the Fuse dispatcher 2021-05-17 14:07:29 -07:00
inodes nfs: open files to do invalidation 2021-05-26 14:05:48 -07:00
journal use portable version of gtest 2021-05-12 15:58:27 -07:00
model stop tracking parent2 2021-05-21 10:53:16 -07:00
monitor Apply clang-format update fixes 2021-01-10 10:06:29 -08:00
nfs nfs: fix non-UTF8 name handling 2021-05-26 14:05:48 -07:00
notifications notifications: support Windows 2020-11-11 09:37:56 -08:00
prjfs Fix unused parameters on PrjfsChannel.cpp 2021-05-25 19:45:22 -07:00
py Backout py3 only changes from windows_thrift 2021-04-22 10:29:49 -07:00
rocksdb Remove dead includes in eden 2019-10-11 16:45:01 -07:00
scripts move eden/scripts/ into eden/fs/ 2020-11-04 18:29:49 -08:00
service Fix unused parameters on EdenServiceHandler 2021-05-25 10:30:29 -07:00
sqlite overlay: use PersistentSqliteStatement in TreeOverlayStore 2021-03-15 12:01:48 -07:00
store hg: promote batch size to a configuration option 2021-05-24 19:17:17 -07:00
takeover use portable version of gtest 2021-05-12 15:58:27 -07:00
telemetry use portable version of gtest 2021-05-12 15:58:27 -07:00
testharness remove support for legacy SNAPSHOT files 2021-05-21 10:53:16 -07:00
third-party fs: update fuse_kernel_linux.h 2021-03-17 20:55:43 -07:00
utils Not use gtest for UserInfo.h on Windows 2021-05-25 23:55:08 -07:00
CMakeLists.txt nfs: make it compile with getdeps builds 2021-02-03 17:54:54 -08:00