sapling/eden/fs
Eamonn Kent 1c18cf23e5 FileChangeMonitor optimizations and stat changes
Summary:
This diff includes the following changes:

- Typically, we stat the monitored file to check for changes. Then, if changes
  are detected, we open/fstat the file.  If open fails, on subsequent
  operations, we can skip the stat check.

- We only update the stat struct of the FileChangeMonitor member when the file
  is successfully opened/processed. This means that all file change checks are
  done relative to the processed file (rather than the results of the previous
  stat).

- We still skip open/fstat if the isChanged() check indicates a file change
  because of a different stat error code. This will still result in the
  call-back being called.

Reviewed By: simpkins

Differential Revision: D9030118

fbshipit-source-id: def735fffe913f84b210cbf646f2849ab130bda4
2018-07-30 13:38:14 -07:00
..
config FileChangeMonitor optimizations and stat changes 2018-07-30 13:38:14 -07:00
fuse Fix data race in Eden fuse driver handling of FUSE_INTERRUPT 2018-07-27 14:36:42 -07:00
inodes rename updateOverlayHeader() to updateOverlayHeaderIfNeeded() 2018-07-27 13:22:58 -07:00
journal Distinguish between "renaming" and "replacing" a file in the journal. 2018-05-07 14:23:13 -07:00
model Added class CachedParsedFileMonitor and tests 2018-07-25 20:07:23 -07:00
rocksdb add CMake build files 2018-04-30 14:37:46 -07:00
service Future<T>::then 1/n: Future<T>::then(try-task) -> Future<T>::thenTry(task). 2018-07-23 18:51:38 -07:00
sqlite avoid leaking the sqlite3 db if we fail to open it 2018-06-20 16:36:22 -07:00
store use new Mononoke API Server for MononokeBackingStore 2018-07-25 21:52:09 -07:00
takeover add integration tests for CLI behavior inside a stale mount 2018-07-27 18:36:55 -07:00
testharness Fix data race in Eden fuse driver handling of FUSE_INTERRUPT 2018-07-27 14:36:42 -07:00
utils Future<T>::then 1/n: Future<T>::then(try-task) -> Future<T>::thenTry(task). 2018-07-23 18:51:38 -07:00
CMakeLists.txt add CMake build files 2018-04-30 14:37:46 -07:00
eden-config.h add CMake build files 2018-04-30 14:37:46 -07:00