mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
54d86f2574
Summary: the osxfuse implementation includes some additional fields in the `fuse_attr` struct. One of those fields is `flags`. We were not initializing this field when converting the stat data to fuse attributes which resulted in it holding "random" data. In debug builds this seemed to usually end up zeroed out but in release builds it was usually a bit pattern that caused the kernel to respond with EPERM when attempting to access the files. I didn't capture exactly what that bit pattern was, just that initializing the struct to zeroes reliably fixed up the EPERM issues in the Release build. Reviewed By: chadaustin Differential Revision: D13680004 fbshipit-source-id: 6b2ce6c10ef8f7db4a8a50bd3f2ddcfdddc3bb45 |
||
---|---|---|
.. | ||
fuse_tester | ||
privhelper | ||
test | ||
BufVec.cpp | ||
BufVec.h | ||
CMakeLists.txt | ||
DirList.cpp | ||
DirList.h | ||
Dispatcher.cpp | ||
Dispatcher.h | ||
EdenStats.cpp | ||
EdenStats.h | ||
FileHandle.h | ||
FileHandleBase.cpp | ||
FileHandleBase.h | ||
FuseChannel.cpp | ||
FuseChannel.h | ||
FuseTypes.cpp | ||
FuseTypes.h | ||
PollHandle.cpp | ||
PollHandle.h | ||
RequestData.cpp | ||
RequestData.h |