mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
parent
c270e4fb30
commit
e0a97d5642
@ -832,7 +832,13 @@ class Vfs::Ram_file_system : public Vfs::File_system
|
|||||||
if (dir->length() || (!dynamic_cast<Directory*>(from_node)))
|
if (dir->length() || (!dynamic_cast<Directory*>(from_node)))
|
||||||
return RENAME_ERR_NO_PERM;
|
return RENAME_ERR_NO_PERM;
|
||||||
|
|
||||||
|
/* detach node to be replaced from directory */
|
||||||
to_dir->release(to_node);
|
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);
|
remove(to_node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user