mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 08:35:09 +00:00
Ext2FS: Inode resizing should fail with ENOSPC if we lack blocks
If there are not enough free blocks in the filesystem to accomodate growing an Inode, we should fail with ENOSPC before even starting to allocate blocks.
This commit is contained in:
parent
2ad2210eb4
commit
5835569527
2 changed files with 17 additions and 7 deletions
|
@ -47,7 +47,7 @@ private:
|
|||
|
||||
bool write_directory(const Vector<FS::DirectoryEntry>&);
|
||||
void populate_lookup_cache() const;
|
||||
bool resize(u64);
|
||||
KResult resize(u64);
|
||||
|
||||
Ext2FS& fs();
|
||||
const Ext2FS& fs() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue