vfs: add Rom_file_system::dataspace

By providing this function, we can start a mounted ROM module as program
under Noux.
This commit is contained in:
Norman Feske 2016-01-18 14:47:06 +01:00 committed by Christian Helmuth
parent 900c795df2
commit fc6c2537ee
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ class Vfs::Rom_file_system : public Single_file_system
** Directory-service interface **
********************************/
Dataspace_capability dataspace(char const *path) override
{
return _rom.cap();
}
/*
* Overwrite the default open function to update the ROM dataspace
* each time when opening the corresponding file.