mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Ext2FS: Move directory writing logic into Ext2FSInode.
This commit is contained in:
parent
3bc699a336
commit
6873e7d016
2 changed files with 84 additions and 84 deletions
|
@ -43,6 +43,7 @@ private:
|
|||
virtual KResult chown(uid_t, gid_t) override;
|
||||
virtual KResult truncate(off_t) override;
|
||||
|
||||
bool write_directory(const Vector<FS::DirectoryEntry>&);
|
||||
void populate_lookup_cache() const;
|
||||
bool resize(qword);
|
||||
|
||||
|
@ -103,8 +104,6 @@ private:
|
|||
Vector<BlockIndex> block_list_for_inode(const ext2_inode&, bool include_block_list_blocks = false) const;
|
||||
bool write_block_list_for_inode(InodeIndex, ext2_inode&, const Vector<BlockIndex>&);
|
||||
|
||||
bool add_inode_to_directory(InodeIndex parent, InodeIndex child, const String& name, byte file_type, int& error);
|
||||
bool write_directory_inode(InodeIndex, Vector<DirectoryEntry>&&);
|
||||
bool get_inode_allocation_state(InodeIndex) const;
|
||||
bool set_inode_allocation_state(InodeIndex, bool);
|
||||
bool set_block_allocation_state(BlockIndex, bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue