1
Fork 0
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:
Andreas Kling 2019-11-02 12:53:31 +01:00
parent 2ad2210eb4
commit 5835569527
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;