Files
ladybird/Kernel
Andreas Kling c1d3ac7108 Ext2FS: Fix unpopulated block list cache after mkdir()
When creating a new directory, we set the initial size to 1 block.
This meant that we were allocating a block up front, but the Inode's
internal block list cache was not populated with this block.

This broke write_bytes() on a new directory, since it assumed that
the block list cache would be up to date if the call to write_bytes()
would not change the directory's size.

This patch fixes the issue in two ways: First, we cache the initial
block list created for new directories.
Second, we now repopulate the block list cache in write_bytes() if it
is empty when we get there. This is basically just a safety fallback
to avoid having this kind of bug in the future.
2019-11-03 10:22:09 +01:00
..
2019-07-13 08:00:24 +02:00
2019-10-12 19:30:59 +02:00
2019-10-12 19:30:59 +02:00
2019-09-28 13:59:49 +02:00
2019-05-28 17:31:20 +02:00
2019-11-02 21:46:00 +01:00
2019-10-28 19:08:48 +01:00
2019-08-11 16:30:43 +02:00