mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-15 21:58:24 +00:00
committed by
Christian Helmuth
parent
e3005266b6
commit
b2f7a6a934
@ -1748,8 +1748,11 @@ class Vfs::Lxip_file_system : public Vfs::File_system,
|
|||||||
return node ? dynamic_cast<Vfs::Directory *>(node) : 0;
|
return node ? dynamic_cast<Vfs::Directory *>(node) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char const *leaf_path(char const *path) override {
|
char const *leaf_path(char const *path) override
|
||||||
return path; }
|
{
|
||||||
|
Vfs::Node *node = _lookup(path);
|
||||||
|
return node ? path : nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
Vfs::Directory_service::Open_result
|
Vfs::Directory_service::Open_result
|
||||||
open(char const *path, unsigned mode,
|
open(char const *path, unsigned mode,
|
||||||
|
@ -223,6 +223,9 @@ struct Vfs::Directory_service : Interface
|
|||||||
|
|
||||||
virtual bool directory(char const *path) = 0;
|
virtual bool directory(char const *path) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return leaf path or nullptr if the path does not exist
|
||||||
|
*/
|
||||||
virtual char const *leaf_path(char const *path) = 0;
|
virtual char const *leaf_path(char const *path) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user