FileSystem: Don't perform path resolution twice for open() with O_CREAT.

This commit is contained in:
Andreas Kling
2019-06-09 19:52:03 +02:00
parent 51d70996ba
commit 487909dd7b
Notes: sideshowbarker 2024-07-19 13:39:48 +09:00
2 changed files with 13 additions and 16 deletions

View File

@@ -61,7 +61,7 @@ public:
KResultOr<Retained<FileDescription>> open(RetainPtr<Device>&&, int options);
KResultOr<Retained<FileDescription>> open(StringView path, int options, mode_t mode, Custody& base);
KResultOr<Retained<FileDescription>> create(StringView path, int options, mode_t mode, Custody& base);
KResultOr<Retained<FileDescription>> create(StringView path, int options, mode_t mode, Custody& parent_custody);
KResult mkdir(StringView path, mode_t mode, Custody& base);
KResult link(StringView old_path, StringView new_path, Custody& base);
KResult unlink(StringView path, Custody& base);