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.
This commit is contained in:
Norman Feske 2018-03-26 14:17:34 +02:00 committed by Christian Helmuth
parent b0b92e4ee2
commit 48c5707a0c

View File

@ -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)
{