sapling/eden/fs/fuse
Adam Simpkins a3c582d708 check for std::generic_category when looking for errno errors
Summary:
Add a new utils/SystemError.h header with helper functions to check if a
`std::system_error` contains an errno value.

Most of the code in Eden previously only checked for `std::system_category`
when looking for errno values.  `std::generic_category` is the correct category
to use for errno exceptions, but folly/Exception.h incorrectly throws them as
`std::system_category` today.  This change makes Eden treat either error type
as errno values for now.

Reviewed By: yfeldblum

Differential Revision: D7329999

fbshipit-source-id: 67a3c3ea10371c53a2e34236b7575deac4cbd53a
2018-03-20 13:38:45 -07:00
..
fuse_tester remove the fusell namespace 2018-03-19 17:01:52 -07:00
privhelper check for std::generic_category when looking for errno errors 2018-03-20 13:38:45 -07:00
test Added thrift request to report outstanding FUSE calls 2018-03-20 10:25:49 -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
DirHandle.h remove the fusell namespace 2018-03-19 17:01:52 -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 remove the fusell namespace 2018-03-19 17:01:52 -07:00
Dispatcher.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
EdenStats.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
EdenStats.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
FileHandle.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
FileHandle.h remove the fusell namespace 2018-03-19 17:01:52 -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 remove the fusell namespace 2018-03-19 17:01:52 -07:00
FileHandleMap.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
FuseChannel.cpp check for std::generic_category when looking for errno errors 2018-03-20 13:38:45 -07:00
FuseChannel.h Added thrift request to report outstanding FUSE calls 2018-03-20 10:25:49 -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 check for std::generic_category when looking for errno errors 2018-03-20 13:38:45 -07:00
RequestData.h Added thrift request to report outstanding FUSE calls 2018-03-20 10:25:49 -07:00