mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 10:29:16 +00:00
fix(kernel/vfs): 🎉 a complete rewrite of the vfs
This is the fourth time re-writing the VFS, hope this will be the last. Tried to make it as modular as possible so this won't be necessary in the future. 🙏
This change required the entire kernel code to be modified.
This commit is contained in:
@ -109,7 +109,7 @@ static int sys_open(SysFrm *Frame, const char *pathname, int flags, mode_t mode)
|
||||
|
||||
if (flags & 0200000 /* O_DIRECTORY */)
|
||||
{
|
||||
FileNode *node = fs->GetByPath(pPathname, pcb->CWD);
|
||||
Node node = fs->Lookup(pcb->CWD, pPathname);
|
||||
if (node == nullptr)
|
||||
{
|
||||
debug("Couldn't find %s", pPathname);
|
||||
@ -150,7 +150,7 @@ static int sys_access(SysFrm *Frame, const char *pathname, int mode)
|
||||
|
||||
debug("access(%s, %d)", (char *)pPathname, mode);
|
||||
|
||||
if (!fs->PathExists(pPathname, pcb->CWD))
|
||||
if (!fs->Lookup(pcb->CWD, pPathname))
|
||||
return -ENOENT;
|
||||
|
||||
stub;
|
||||
|
Reference in New Issue
Block a user