mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
Kernel: Include absolute paths of mount points in /proc/mounts
This commit is contained in:
parent
34e745b0b4
commit
fc0b63ca3c
4 changed files with 20 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue