2
0
Fork 0

Patch the VFS to load libvfs_%s.so plugins

This commit is contained in:
Emery Hemingway 2020-05-11 18:56:39 +05:30
parent eff3cd9d33
commit c0cfa5f549
1 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,4 @@
commit 91ad094b581afde72199de1029fdd0ff3103d731 commit f7b706b179c6faff24b94b1f89153568146d398f
Author: Emery Hemingway <ehmry@posteo.net> Author: Emery Hemingway <ehmry@posteo.net>
Date: Tue May 5 21:39:21 2020 +0530 Date: Tue May 5 21:39:21 2020 +0530
@ -123,3 +123,16 @@ index 04caae01b2..8d64b0d34e 100644
+ $(VERBOSE)$(RM) -f *.d *.i *.ii *.s *.ali *.lib.so lib*.so + $(VERBOSE)$(RM) -f *.d *.i *.ii *.s *.ali *.lib.so lib*.so
clean: clean_prg_objects clean: clean_prg_objects
diff --git a/repos/os/src/lib/vfs/file_system_factory.cc b/repos/os/src/lib/vfs/file_system_factory.cc
index 48069d3fb8..53e8678757 100644
--- a/repos/os/src/lib/vfs/file_system_factory.cc
+++ b/repos/os/src/lib/vfs/file_system_factory.cc
@@ -117,7 +117,7 @@ Vfs::Global_file_system_factory::_try_create(Vfs::Env &env,
Library_name Vfs::Global_file_system_factory::_library_name(Node_name const &node_name)
{
char lib_name [Library_name::capacity()];
- Genode::snprintf(lib_name, sizeof(lib_name), "vfs_%s.lib.so",
+ Genode::snprintf(lib_name, sizeof(lib_name), "libvfs_%s.so",
node_name.string());
return Library_name(lib_name);