mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Ext2FS: Oops, fix wrong ENOSPC in create_inode()
This commit is contained in:
parent
bff59eff4b
commit
bd7c38e7b6
Notes:
sideshowbarker
2024-07-19 12:00:26 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/bd7c38e7b67
@ -1190,7 +1190,7 @@ RefPtr<Inode> Ext2FS::create_inode(InodeIdentifier parent_id, const String& name
|
||||
#endif
|
||||
|
||||
auto needed_blocks = ceil_div(size, block_size());
|
||||
if ((size_t)needed_blocks < super_block().s_free_blocks_count) {
|
||||
if ((size_t)needed_blocks > super_block().s_free_blocks_count) {
|
||||
dbg() << "Ext2FS: create_inode: not enough free blocks";
|
||||
error = -ENOSPC;
|
||||
return {};
|
||||
|
Loading…
Reference in New Issue
Block a user