Kernel: Update the ".." inode for directories after a rename

Because the ".." entry in a directory is a separate inode, if a
directory is renamed to a new location, then we should update this entry
the point to the new parent directory as well.

Co-authored-by: Liav A <liavalb@gmail.com>
This commit is contained in:
sin-ack 2022-10-08 11:22:12 +02:00 committed by Andreas Kling
parent 2b246d980a
commit 3b03077abb
Notes: sideshowbarker 2024-07-18 03:20:18 +09:00
18 changed files with 128 additions and 0 deletions

View file

@ -104,6 +104,11 @@ ErrorOr<void> DevPtsFSInode::remove_child(StringView)
return EROFS;
}
ErrorOr<void> DevPtsFSInode::replace_child(StringView, Inode&)
{
return EROFS;
}
ErrorOr<void> DevPtsFSInode::chmod(mode_t)
{
return EROFS;