1
Fork 0
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:
Andreas Kling 2019-01-31 06:13:55 +01:00
parent 34e745b0b4
commit fc0b63ca3c
4 changed files with 20 additions and 6 deletions

View file

@ -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;