1
Fork 0
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:
Idan Horowitz 2022-01-11 21:26:32 +02:00
parent 6be2a51b10
commit 4e7d307166
3 changed files with 10 additions and 5 deletions

View file

@ -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()