Kernel: Add Custody::try_create_absolute_path()

This adds a way to get a Custody's absolute path as KString, which
enables it to fail gracefully on OOM.
This commit is contained in:
Max Wipfli 2021-07-06 12:40:35 +02:00 committed by Andreas Kling
commit 95f769ea51
Notes: sideshowbarker 2024-07-18 10:14:09 +09:00
2 changed files with 31 additions and 0 deletions

View file

@ -30,6 +30,7 @@ public:
Inode& inode() { return *m_inode; }
const Inode& inode() const { return *m_inode; }
StringView name() const { return m_name->view(); }
OwnPtr<KString> try_create_absolute_path() const;
String absolute_path() const;
int mount_flags() const { return m_mount_flags; }