mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Kernel: Call did_modify_contents()
after truncate()
Truncating a file should absolutly mark it as modified. With this change our `tail` implementation can correctly handle it.
This commit is contained in:
parent
525555181e
commit
5180e41918
Notes:
sideshowbarker
2024-07-16 23:59:28 +09:00
Author: https://github.com/fdellwing
Commit: 5180e41918
Pull-request: https://github.com/SerenityOS/serenity/pull/23168
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/gmta
3 changed files with 3 additions and 0 deletions
|
@ -380,6 +380,7 @@ ErrorOr<void> RAMFSInode::truncate(u64 size)
|
|||
}
|
||||
m_metadata.size = size;
|
||||
set_metadata_dirty(true);
|
||||
did_modify_contents();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue