mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-16 06:08:16 +00:00
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:
committed by
Christian Helmuth
parent
b0b92e4ee2
commit
48c5707a0c
@ -45,7 +45,7 @@ class Vfs::Dir_file_system : public File_system
|
|||||||
*/
|
*/
|
||||||
bool _vfs_root = false;
|
bool _vfs_root = false;
|
||||||
|
|
||||||
Dir_file_system &_root_dir;
|
File_system &_root_dir;
|
||||||
|
|
||||||
struct Dir_vfs_handle : Vfs_handle
|
struct Dir_vfs_handle : Vfs_handle
|
||||||
{
|
{
|
||||||
@ -327,7 +327,7 @@ class Vfs::Dir_file_system : public File_system
|
|||||||
Genode::Xml_node node,
|
Genode::Xml_node node,
|
||||||
Io_response_handler &io_handler,
|
Io_response_handler &io_handler,
|
||||||
File_system_factory &fs_factory,
|
File_system_factory &fs_factory,
|
||||||
Dir_file_system &root_dir)
|
File_system &root_dir)
|
||||||
:
|
:
|
||||||
_root_dir(root_dir)
|
_root_dir(root_dir)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user