VFS: Send notifications on RAM file rename

Fix #2937
This commit is contained in:
Ehmry - 2018-08-21 19:19:43 +02:00 committed by Christian Helmuth
parent c270e4fb30
commit e0a97d5642
1 changed files with 6 additions and 0 deletions

View File

@ -832,7 +832,13 @@ class Vfs::Ram_file_system : public Vfs::File_system
if (dir->length() || (!dynamic_cast<Directory*>(from_node)))
return RENAME_ERR_NO_PERM;
/* detach node to be replaced from directory */
to_dir->release(to_node);
/* notify the node being replaced */
to_node->notify(_env.watch_handler());
/* free the node that is replaced */
remove(to_node);
}