caiminf / freenos

Automatically exported from code.google.com/p/freenos
GNU General Public License v3.0
0 stars 0 forks source link

Implement the notion of current directory in the VirtualFileSystem #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At the point FreeNOS is not aware of the current directory of Processes.
We should modify the VirtualFileSystem to be aware of this, and provide
proper POSIX-1.2008 interface functions aswell.

Original issue reported on code.google.com by coenbijlsma on 7 Aug 2009 at 11:17

GoogleCodeExporter commented 9 years ago
ORIGINAL COMMENT FROM nieklinnenbank
Revision 225 contains experimental support for getting and setting
the current directory via the VirtualFileSystem. A problem in this 
implementation
is that mounted FileSystems need access to the current directory aswell, to 
lookup
relative paths for example. Currently FileSystem.h send a FileSystemMessage 
back to
the VirtualFileSystem with a GetCurrentDir action, to retrieve this 
information. This
works, but is slow, and when the VFS tries to contact the FileSystem first, 
messages may
arrive in the wrong order.

A proper solution is to share the entire user process table, containing 
information
like the current directory, with all FileSystem servers.

Original comment by coenbijlsma on 7 Aug 2009 at 11:18