mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 15:18:20 +00:00
VFS: construct file-systems using Vfs::Env object
Reduce the size and forward compatibility of VFS file-system constructors by passing an object holding accessors for 'Genode::Env', 'Genode::Allocator', response handlers, and the root file-system. Fix #2742
This commit is contained in:
committed by
Christian Helmuth
parent
810f59b555
commit
82a683eccc
@ -512,13 +512,9 @@ class Vfs::Tar_file_system : public File_system
|
||||
|
||||
public:
|
||||
|
||||
Tar_file_system(Genode::Env &env,
|
||||
Genode::Allocator &alloc,
|
||||
Genode::Xml_node config,
|
||||
Io_response_handler &,
|
||||
File_system &)
|
||||
Tar_file_system(Vfs::Env &env, Genode::Xml_node config)
|
||||
:
|
||||
_env(env), _alloc(alloc),
|
||||
_env(env.env()), _alloc(env.alloc()),
|
||||
_rom_name(config.attribute_value("name", Rom_name())),
|
||||
_root_node("", 0),
|
||||
_cached_num_dirent(_root_node)
|
||||
|
Reference in New Issue
Block a user