mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:05:06 +00:00
Kernel: Generalize VFS metadata lookup and use it in mount() and stat()
Refactored VFS::stat() into VFS::lookup_metadata(), which can now be used for general VFS metadata lookup by path.
This commit is contained in:
parent
ae4d707684
commit
a6fb055028
3 changed files with 21 additions and 21 deletions
|
@ -73,7 +73,7 @@ public:
|
|||
KResult chown(StringView path, uid_t, gid_t, Custody& base);
|
||||
KResult chown(Inode&, uid_t, gid_t);
|
||||
KResult access(StringView path, int mode, Custody& base);
|
||||
KResult stat(StringView path, int options, Custody& base, struct stat&);
|
||||
KResultOr<InodeMetadata> lookup_metadata(StringView path, Custody& base, int options = 0);
|
||||
KResult utime(StringView path, Custody& base, time_t atime, time_t mtime);
|
||||
KResult rename(StringView oldpath, StringView newpath, Custody& base);
|
||||
KResult mknod(StringView path, mode_t, dev_t, Custody& base);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue