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:
Andreas Kling 2019-11-02 12:53:31 +01:00
commit 5835569527
Notes: sideshowbarker 2024-07-19 11:28:27 +09:00
2 changed files with 17 additions and 7 deletions

View file

@ -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;