mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 14:18:15 +00:00
Kernel: Include absolute paths of mount points in /proc/mounts
This commit is contained in:
@@ -371,6 +371,14 @@ RetainPtr<Inode> VFS::get_inode(InodeIdentifier inode_id)
|
||||
return inode_id.fs()->get_inode(inode_id);
|
||||
}
|
||||
|
||||
String VFS::absolute_path(InodeIdentifier inode_id)
|
||||
{
|
||||
auto inode = get_inode(inode_id);
|
||||
if (!inode)
|
||||
return { };
|
||||
return absolute_path(*inode);
|
||||
}
|
||||
|
||||
String VFS::absolute_path(Inode& core_inode)
|
||||
{
|
||||
int error;
|
||||
|
||||
Reference in New Issue
Block a user