how does vfs send filenames to fs modules?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Adek336

how does vfs send filenames to fs modules?

Post by Adek336 »

I imagine my virtual file system layer:

1. Hm.. I received a request to open "/fd0/the.file"
2. ok, so the file is under "/fd0", serviced by module fat12.mod
3. let's send him a request to read file...

Now, is it "/the.file" (the offset relative to the mount point) or "/fd0/the.file"? The second makes simpler having fat12 volumes mounted at once, but then the fs-module has to know where it has been mounted to. So, my question is, does the vfs give a filename/path relative to the mountpoint or an absolute one?

Cheers,
Adrian
Moose

RE:how does vfs send filenames to fs modules?

Post by Moose »

Why not give two things to your vfs?
1 - the mount point
2 - folder/file location

Moose.
Post Reply