mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-12 22:22:55 +00:00
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:
parent
2b246d980a
commit
3b03077abb
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/sin-ack 🔰
Commit: 3b03077abb
Pull-request: https://github.com/SerenityOS/serenity/pull/16040
18 changed files with 128 additions and 0 deletions
|
@ -66,6 +66,9 @@ public:
|
|||
virtual ErrorOr<NonnullLockRefPtr<Inode>> create_child(StringView name, mode_t, dev_t, UserID, GroupID) = 0;
|
||||
virtual ErrorOr<void> add_child(Inode&, StringView name, mode_t) = 0;
|
||||
virtual ErrorOr<void> remove_child(StringView name) = 0;
|
||||
/// Replace child atomically, incrementing the link count of the replacement
|
||||
/// inode and decrementing the older inode's.
|
||||
virtual ErrorOr<void> replace_child(StringView name, Inode&) = 0;
|
||||
virtual ErrorOr<void> chmod(mode_t) = 0;
|
||||
virtual ErrorOr<void> chown(UserID, GroupID) = 0;
|
||||
virtual ErrorOr<void> truncate(u64) { return {}; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue