From 48c5707a0c2833fabfdd675fd074ee1ca1ded288 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 26 Mar 2018 14:17:34 +0200 Subject: [PATCH] vfs: relax root_dir argument of 'Dir_file_system' By letting the 'Dir_file_system' accept an arbitrary 'File_system' as root directory, we can use the 'Dir_file_system' as a building block for creating other file-system types. --- repos/os/include/vfs/dir_file_system.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/os/include/vfs/dir_file_system.h b/repos/os/include/vfs/dir_file_system.h index 49595f57ff..53904d041b 100644 --- a/repos/os/include/vfs/dir_file_system.h +++ b/repos/os/include/vfs/dir_file_system.h @@ -45,7 +45,7 @@ class Vfs::Dir_file_system : public File_system */ bool _vfs_root = false; - Dir_file_system &_root_dir; + File_system &_root_dir; struct Dir_vfs_handle : Vfs_handle { @@ -327,7 +327,7 @@ class Vfs::Dir_file_system : public File_system Genode::Xml_node node, Io_response_handler &io_handler, File_system_factory &fs_factory, - Dir_file_system &root_dir) + File_system &root_dir) : _root_dir(root_dir) {