Boilerplate class for implementing a L4Re::Vfs::File_system.
More...
|
| Be_file_system (char const *fstype) throw () |
| Create a file-system object for the given fstype. More...
|
|
| ~Be_file_system () throw () |
| Destroy a file-system object. More...
|
|
char const * | type () const throw () |
| Return the file-system type. 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...
|
|
Boilerplate class for implementing a L4Re::Vfs::File_system.
This class already takes care of registering and unregistering the file system in the global registry and implements the type() method.
- Examples:
- tmpfs/lib/src/fs.cc.
Definition at line 308 of file backend.
◆ Be_file_system()
L4Re::Vfs::Be_file_system::Be_file_system |
( |
char const * |
fstype | ) |
|
throw | ( | |
| ) | | |
|
inlineexplicit |
Create a file-system object for the given fstype.
- Parameters
-
fstype | The type that type() shall return. |
This constructor takes care of registering the file system in the registry of L4Re::Vfs::vfs_ops.
Definition at line 322 of file backend.
◆ ~Be_file_system()
L4Re::Vfs::Be_file_system::~Be_file_system |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
Destroy a file-system object.
This destructor takes care of removing this file system from the registry of L4Re::Vfs::vfs_ops.
Definition at line 334 of file backend.
◆ type()
char const* L4Re::Vfs::Be_file_system::type |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inlinevirtual |
Return the file-system type.
Returns the file-system type given as fstype in the constructor.
Implements L4Re::Vfs::File_system.
Definition at line 344 of file backend.
The documentation for this class was generated from the following file: