Filesystem Drivers
There will be 2 completely different driver formats,one for devices,and the other for disks (ie. all storage devices).The namespace is organised according to that devices name,ie. the first ide drive will show up as /ide0/<whatever> in the filesystem.This is quite in opposition to Linux's dev scheme and mount points.Since soft links will be there,I don't really see a problem.When a file call is made ,ie.
fread("/ide0/sites/index.html")
the first /..../ sequence tells the OS which driver to use,by NAME.
There are 2 defining characteristics of a filesystem: 1) removable,y or n,and 2) writable,y or n.
Therefore,FSD will be handed full path ("/sites/index.html"),whether to read or write,offset and amount.(or,for a touch() call,date and time).
Return: Success or 1) Failure
2) Media removed
3) Media not writable.
Fread() ing a directory gives everything inside it,ie. files as well as other directories.
Del() ing a file doesn't work if it's open.If an app makes such a call,it is BLOCKED till the last program Close()s it,it's del'd after that.