From 7de2b040f8a347042d814d62496d5f11dc2f12e2 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 7 Sep 2020 15:47:51 +0200 Subject: [PATCH] vfs: deliver ACKs after config change This is needed to enable VFS plugins to notify VFS clients about file changes that depend on the plugin configuration, E.g., whenever the vfs_ttf plugin responds to a font-size change, it generates a watch notification for the glyphs file. Since the change is independent from I/O, we need to manually call 'handle_io_progress'. --- repos/os/src/server/vfs/main.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/repos/os/src/server/vfs/main.cc b/repos/os/src/server/vfs/main.cc index 723ddbc287..b780b1fdd7 100644 --- a/repos/os/src/server/vfs/main.cc +++ b/repos/os/src/server/vfs/main.cc @@ -765,6 +765,13 @@ class Vfs_server::Root : public Genode::Root_component, { _config_rom.update(); _vfs_env.root_dir().apply_config(vfs_config()); + + /* + * The VFS configuration change may result in watch notifications + * generated by VFS plugins. Execute 'handle_io_progress' to + * deliver the watch notifications. + */ + handle_io_progress(); } /**