Finally, resolve_path: a function which takes a path (/etc/fstab for example), and walks the VFS: In this case, it would start with the root FS node, and ask it: "do you have a directory/file named etc?" The node could say 'yes', 'no', or 'i'm not a directory, I'm a file' (should not be the case for the VFS root, but for the other ones it could be) If it says yes, we continue and ask the child if it has a file named fstab. Etc... |
||
---|---|---|
.. | ||
acpi | ||
cpu | ||
fs | ||
gdt | ||
init | ||
interrupts | ||
io | ||
log | ||
memory | ||
misc | ||
panic | ||
rand | ||
render | ||
std | ||
sys | ||
thread | ||
trace | ||
main.asm | ||
main.cpp |