mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:15:07 +00:00
Kernel: Place ext2 dir entries so they don't span multiple blocks
Ext2 dir entries spanning multiple blocks are not allowed. If they do occur they are flagged as corrupt by e2fsck for example.
This commit is contained in:
parent
293a5c2b49
commit
25a5e59f79
2 changed files with 31 additions and 23 deletions
|
@ -58,7 +58,7 @@ private:
|
|||
virtual KResult truncate(u64) override;
|
||||
virtual KResultOr<int> get_block_address(int) override;
|
||||
|
||||
KResult write_directory(const Vector<Ext2FSDirectoryEntry>&);
|
||||
KResult write_directory(Vector<Ext2FSDirectoryEntry>&);
|
||||
bool populate_lookup_cache() const;
|
||||
KResult resize(u64);
|
||||
KResult write_indirect_block(BlockBasedFS::BlockIndex, Span<BlockBasedFS::BlockIndex>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue