From e0a97d56429c0d1fc4baa930da9180ac20037ee2 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 21 Aug 2018 19:19:43 +0200 Subject: [PATCH] VFS: Send notifications on RAM file rename Fix #2937 --- repos/os/src/lib/vfs/ram_file_system.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repos/os/src/lib/vfs/ram_file_system.h b/repos/os/src/lib/vfs/ram_file_system.h index 864a445a6..a3c15981d 100644 --- a/repos/os/src/lib/vfs/ram_file_system.h +++ b/repos/os/src/lib/vfs/ram_file_system.h @@ -832,7 +832,13 @@ class Vfs::Ram_file_system : public Vfs::File_system if (dir->length() || (!dynamic_cast(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); }