mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
446ae54b71
Summary: On Windows, the FS refcount is used to indicate that ProjectedFS knows about this inode and either has a placeholder on disk, or a plain file. The first event only occurs on lookup (similarly to Linux/macOS), while the second one happens when files are created by the user and we receive a notification about it. In order to avoid races and to miss necessary invalidation, the refcount has to be incremented after the placeholder has been created, and the refcount is decremented before the invalidation is performed. This is straightforward to achieve for notifications, but requires passing a callback to the PrfsChannel. Reviewed By: chadaustin Differential Revision: D24800819 fbshipit-source-id: 0e7ea7ed3a9ca0414e3e727fba975045546d82d1 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Dispatcher.cpp | ||
Dispatcher.h | ||
Enumerator.cpp | ||
Enumerator.h | ||
PrjfsChannel.cpp | ||
PrjfsChannel.h | ||
PrjfsRequestContext.h |