Miosix
2.0alpha1
|
#include <mountpointfs.h>
Public Member Functions | |
MountpointFs () | |
virtual int | open (intrusive_ref_ptr< FileBase > &file, StringPart &name, int flags, int mode) |
virtual int | lstat (StringPart &name, struct stat *pstat) |
virtual int | unlink (StringPart &name) |
virtual int | rename (StringPart &oldName, StringPart &newName) |
virtual int | mkdir (StringPart &name, int mode) |
virtual int | rmdir (StringPart &name) |
Public Member Functions inherited from miosix::FilesystemBase | |
FilesystemBase () | |
virtual int | readlink (StringPart &name, std::string &target) |
virtual bool | supportsSymlinks () const |
short int | getFsId () const |
virtual | ~FilesystemBase () |
Public Member Functions inherited from miosix::IntrusiveRefCountedSharedFromThis< FilesystemBase > | |
IntrusiveRefCountedSharedFromThis () | |
intrusive_ref_ptr< FilesystemBase > | shared_from_this () |
intrusive_ref_ptr< const FilesystemBase > | shared_from_this () const |
virtual | ~IntrusiveRefCountedSharedFromThis () |
Additional Inherited Members | |
Protected Member Functions inherited from miosix::IntrusiveRefCounted | |
IntrusiveRefCounted () | |
IntrusiveRefCounted (const IntrusiveRefCounted &) | |
IntrusiveRefCounted & | operator= (const IntrusiveRefCounted &) |
Protected Attributes inherited from miosix::FilesystemBase | |
const short int | filesystemId |
The unique filesystem id, used by lstat. | |
int | parentFsMountpointInode |
The inode of the directory in the parent fs. | |
MountpointFs is a special filesystem whose purpose is to create directories to be used as mountpoints for other filesystems.
|
inline |
Constructor
|
virtual |
Obtain information on a file, identified by a path name. Does not follow symlinks
name | path name, relative to the local filesystem |
pstat | file information is stored here |
Implements miosix::FilesystemBase.
|
virtual |
Create a directory
name | directory name |
mode | directory permissions |
Implements miosix::FilesystemBase.
|
virtual |
Open a file
file | the file object will be stored here, if the call succeeds |
name | the name of the file to open, relative to the local filesystem |
flags | file flags (open for reading, writing, ...) |
mode | file permissions |
Implements miosix::FilesystemBase.
|
virtual |
Rename a file or directory
oldName | old file name |
newName | new file name |
Implements miosix::FilesystemBase.
|
virtual |
Remove a directory if empty
name | directory name |
Implements miosix::FilesystemBase.
|
virtual |
Remove a file or directory
name | path name of file or directory to remove |
Implements miosix::FilesystemBase.