L4Re - L4 Runtime Environment
|
Basic interface for an L4Re::Vfs file system. More...
#include <vfs.h>
Public Member Functions | |
virtual char const * | type () const =0 throw () |
Returns the type of the file system, used in mount as fstype argument. More... | |
virtual int | mount (char const *source, unsigned long mountflags, void const *data, cxx::Ref_ptr< File > *dir)=0 throw () |
Create a directory object dir representing source mounted with this file system. More... | |
Basic interface for an L4Re::Vfs file system.
The may purpose of this interface is that there is a single object for each supported file-system type (e.g., ext2, vfat) exists in your application and is registered at the L4Re::Vfs::Fs singleton available in via L4Re::Vfs::vfs_ops. At the end the POSIX mount function call the File_system::mount method for the given file-system type given in mount.
|
pure virtual |
Create a directory object dir representing source mounted with this file system.
source | The path to the source device to mount. This may also be some URL or anything file-system specific. |
mountflags | The mount flags as specified in the POSIX mount call. |
data | The data as specified in the POSIX mount call. The contents are file-system specific. |
dir | A new directory object representing the file-system root directory. |
Referenced by L4Re::Vfs::Fs::mount().
|
pure virtual |
Returns the type of the file system, used in mount as fstype argument.
Implemented in L4Re::Vfs::Be_file_system.