1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:37:35 +00:00

Refactor FS::add_inode_to_directory() into Inode::add_child().

This commit is contained in:
Andreas Kling 2018-12-25 00:27:39 +01:00
parent 4f142b86ec
commit 6451b98ad4
5 changed files with 31 additions and 20 deletions

View file

@ -82,6 +82,7 @@ public:
virtual InodeIdentifier lookup(const String& name) = 0;
virtual String reverse_lookup(InodeIdentifier) = 0;
virtual bool write(const ByteBuffer&) = 0;
virtual bool add_child(InodeIdentifier child_id, const String& name, byte file_type, int& error) = 0;
bool is_metadata_dirty() const { return m_metadata_dirty; }