vfs server: survive malformed dynamic re-config

The VFS server used to respond to any invalid config by exiting.
By disregarding such configurations instead, this patch makes the VFS
server robust against temporary malconfiguration.
This commit is contained in:
Norman Feske 2024-11-18 18:33:07 +01:00 committed by Christian Helmuth
parent d095945d6c
commit 798b49fcc3

View File

@ -782,7 +782,8 @@ class Vfs_server::Root : public Genode::Root_component<Session_component>,
void _config_update() void _config_update()
{ {
_config_rom.update(); _config_rom.update();
_vfs_env.root_dir().apply_config(vfs_config()); _config_rom.xml().with_optional_sub_node("vfs", [&] (Xml_node const &config) {
_vfs_env.root_dir().apply_config(config); });
/* /*
* The VFS configuration change may result in watch notifications * The VFS configuration change may result in watch notifications