summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Custody.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-30 18:58:59 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-30 18:58:59 +0200
commit393851418b01f55052ad2f486ae808c959b7e3a4 (patch)
tree39380411926e9fcc3ac147d3125126371da0db44 /Kernel/FileSystem/Custody.h
parent4cb87b17536d64656e3f842a408d00c4072afc9b (diff)
downloadserenity-393851418b01f55052ad2f486ae808c959b7e3a4.zip
FileSystem: Port most of the code over to using custodies.
The current working directory is now stored as a custody. Likewise for a process executable file. This unbreaks /proc/PID/fd which has not been working since we made the filesystem bigger. This still needs a bunch of work, for instance when renaming or removing a file somewhere, we have to update the relevant custody links.
Diffstat (limited to 'Kernel/FileSystem/Custody.h')
-rw-r--r--Kernel/FileSystem/Custody.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/FileSystem/Custody.h b/Kernel/FileSystem/Custody.h
index 06cf20b69e..a468e4cf98 100644
--- a/Kernel/FileSystem/Custody.h
+++ b/Kernel/FileSystem/Custody.h
@@ -23,6 +23,8 @@ public:
const String& name() const { return m_name; }
+ String absolute_path() const;
+
private:
Custody(Custody* parent, const String& name, Inode&);