mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
Kernel: Convert Mount::absolute_path to ErrorOr<NonnullOwnPtr<KString>>
This commit is contained in:
parent
6be2a51b10
commit
4e7d307166
3 changed files with 10 additions and 5 deletions
|
@ -27,11 +27,11 @@ Mount::Mount(Inode& source, Custody& host_custody, int flags)
|
|||
{
|
||||
}
|
||||
|
||||
String Mount::absolute_path() const
|
||||
ErrorOr<NonnullOwnPtr<KString>> Mount::absolute_path() const
|
||||
{
|
||||
if (!m_host_custody)
|
||||
return "/";
|
||||
return m_host_custody->absolute_path();
|
||||
return KString::try_create("/"sv);
|
||||
return m_host_custody->try_serialize_absolute_path();
|
||||
}
|
||||
|
||||
Inode* Mount::host()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue