Kernel: Fix setting ext2 symbolic link target

If a link was >= 60 bytes but got shrinked to 60 bytes, reading it would
rebort garbage and unlinking it would leak blocks
This commit is contained in:
2026-01-11 03:58:48 +02:00
parent 4af9699b22
commit 5637b8602b
2 changed files with 12 additions and 7 deletions

View File

@@ -70,6 +70,7 @@ namespace Kernel
BAN::ErrorOr<void> cleanup_indirect_block(uint32_t block, uint32_t depth);
BAN::ErrorOr<void> cleanup_default_links();
BAN::ErrorOr<void> cleanup_data_blocks();
BAN::ErrorOr<void> cleanup_from_fs();
BAN::ErrorOr<void> sync();