Page 1 of 1

how does vfs send filenames to fs modules?

Posted: Wed Jan 28, 2004 12:00 am
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

RE:how does vfs send filenames to fs modules?

Posted: Wed Jan 28, 2004 12:00 am
by Moose
Why not give two things to your vfs?
1 - the mount point
2 - folder/file location

Moose.