mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
FileSystem: Reuse existing custodies when possible, and keep them updated.
Walk the custody cache and try to reuse an existing one when possible. The VFS is responsible for updating them when something happens that would cause the described relationship to change. This is definitely not perfect but it does work for the basic scenarios like renaming and removing directory entries.
This commit is contained in:
parent
3fbddcecd2
commit
8adadf8a46
4 changed files with 78 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
|
@ -35,6 +36,8 @@ public:
|
|||
|
||||
bool is_root_inode() const;
|
||||
|
||||
String to_string() const { return String::format("%u:%u", m_fsid, m_index); }
|
||||
|
||||
private:
|
||||
dword m_fsid { 0 };
|
||||
dword m_index { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue