mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
Ext2FS: Don't uncache inodes while they are being watched
If an inode is observed by watch_file(), we won't uncache it. This allows a program to watch a file without keeping it open.
This commit is contained in:
parent
56bbf30f28
commit
721585473b
2 changed files with 6 additions and 0 deletions
|
@ -77,6 +77,8 @@ public:
|
|||
|
||||
static void sync();
|
||||
|
||||
bool has_watchers() const { return !m_watchers.is_empty(); }
|
||||
|
||||
void register_watcher(Badge<InodeWatcher>, InodeWatcher&);
|
||||
void unregister_watcher(Badge<InodeWatcher>, InodeWatcher&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue