From 95f769ea5130a53103626afa0c81379715af6412 Mon Sep 17 00:00:00 2001 From: Max Wipfli Date: Tue, 6 Jul 2021 12:40:35 +0200 Subject: 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. --- Kernel/FileSystem/Custody.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Kernel/FileSystem/Custody.h') diff --git a/Kernel/FileSystem/Custody.h b/Kernel/FileSystem/Custody.h index 47b7815fd0..b2eaa1ee2c 100644 --- a/Kernel/FileSystem/Custody.h +++ b/Kernel/FileSystem/Custody.h @@ -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 try_create_absolute_path() const; String absolute_path() const; int mount_flags() const { return m_mount_flags; } -- cgit v1.2.3