mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
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:
parent
d095945d6c
commit
798b49fcc3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user