sapling/eden/fs/fuse
Adam Simpkins dac67ee976 fix bug in error handling on FUSE channel shutdown
Summary:
Fix the code in FuseChannel::processSession() to look at the errno value
instead of the return value from `read()` when checking for ENODEV.

I accidentally broke this in D7436867.  This wasn't causing any major issues,
since we would still break out of the loop, but it caused us to incorrectly
print warning messages about receiving an unexpected error.  We would also
print this error message once per FUSE thread rather than just once for the
mount point.

Reviewed By: bolinfest

Differential Revision: D8109889

fbshipit-source-id: 9a53ca47b436ccf6731144ee2b829131339b6445
2018-05-23 11:51:59 -07:00
..
fuse_tester update folly::Init to call folly::initLogging() 2018-05-15 12:38:01 -07:00
privhelper update folly::Init to call folly::initLogging() 2018-05-15 12:38:01 -07:00
test standardize on std::chrono_literals 2018-05-18 16:51:15 -07:00
BufVec.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
BufVec.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
CMakeLists.txt add CMake build files 2018-04-30 14:37:46 -07:00
DirHandle.h mark a bunch of folly::Future<folly::Unit> functions with FOLLY_NODISCARD 2018-04-26 21:00:25 -07:00
DirList.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
DirList.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
Dispatcher.cpp move folly/experimental/logging to folly/logging/ 2018-04-30 21:29:29 -07:00
Dispatcher.h mark a bunch of folly::Future<folly::Unit> functions with FOLLY_NODISCARD 2018-04-26 21:00:25 -07:00
EdenStats.cpp remove alternate EDEN_HAS_COMMON_STATS code paths 2018-04-10 12:19:17 -07:00
EdenStats.h remove alternate EDEN_HAS_COMMON_STATS code paths 2018-04-10 12:19:17 -07:00
FileHandle.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
FileHandle.h mark a bunch of folly::Future<folly::Unit> functions with FOLLY_NODISCARD 2018-04-26 21:00:25 -07:00
FileHandleBase.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
FileHandleBase.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
FileHandleMap.cpp move folly/experimental/logging to folly/logging/ 2018-04-30 21:29:29 -07:00
FileHandleMap.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
FuseChannel.cpp fix bug in error handling on FUSE channel shutdown 2018-05-23 11:51:59 -07:00
FuseChannel.h declare the FuseChannel::InvalidationEntry move constructor noexcept 2018-03-30 15:16:13 -07:00
FuseTypes.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
FuseTypes.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
handlemap.thrift move InodeMap serialization to new takeover.thrift file 2018-01-17 11:51:30 -08:00
PollHandle.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
PollHandle.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
RequestData.cpp folly::Unit{} -> folly::unit 2018-05-08 13:38:02 -07:00
RequestData.h Added thrift request to report outstanding FUSE calls 2018-03-20 10:25:49 -07:00