1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

Kernel: Add callback on ".." directory entry for a TmpFS root directory

This commit is contained in:
Liav A 2022-12-04 10:27:19 +02:00 committed by Andrew Kaster
parent 5ee1758f46
commit 6a555af1f1
3 changed files with 23 additions and 9 deletions

View file

@ -32,7 +32,9 @@ private:
LockRefPtr<TmpFSInode> m_root_inode;
unsigned m_next_inode_index { 1 };
// NOTE: We start by assigning InodeIndex of 2, because 0 is invalid and 1
// is reserved for the root directory inode.
unsigned m_next_inode_index { 2 };
unsigned next_inode_index();
};