StuBS
FileSystemImage Class Reference
Inheritance diagram for FileSystemImage:
[legend]
Collaboration diagram for FileSystemImage:
[legend]

Public Member Functions

int mount (char *buf, unsigned size)
int umount ()
int chdir (const char *path)
int readlink (const char *pathname, char *buf, unsigned bufsiz)
int open (const char *pathname, bool write)
int close (int fd)
int read (int fd, void *buf, unsigned count)
int write (int fd, const void *buf, unsigned count)
int link (const char *oldpath, const char *newpath)
int symlink (const char *target, const char *linkpath)
int unlink (const char *pathname)
int rename (const char *oldpath, const char *newpath)
int mkdir (const char *pathname)
int rmdir (const char *pathname)
int truncate (const char *path)
FileSystemInterface::DirHandle * opendir (const char *name)
FileSystemInterface::DirEntry readdir (FileSystemInterface::DirHandle *dirp)
void rewinddir (FileSystemInterface::DirHandle *dirp)
int closedir (FileSystemInterface::DirHandle *dirp)
FileSystemInterface::FileStats stat (const char *path, bool followSymlink=true)
int getcwd (char *buf, unsigned bufsiz)
void sync ()

Additional Inherited Members

Public Types inherited from FileSystemInterface
enum  FileType {
  FILE ,
  DIRECTORY ,
  SYMLINK ,
  OTHER
}
typedef void DirHandle

Member Function Documentation

◆ chdir()

int FileSystemImage::chdir ( const char * path)
virtual

Implements FileSystemInterface.

◆ readlink()

int FileSystemImage::readlink ( const char * pathname,
char * buf,
unsigned bufsiz )
virtual

Implements FileSystemInterface.

◆ open()

int FileSystemImage::open ( const char * pathname,
bool write )
virtual

Implements FileSystemInterface.

◆ close()

int FileSystemImage::close ( int fd)
virtual

Implements FileSystemInterface.

◆ read()

int FileSystemImage::read ( int fd,
void * buf,
unsigned count )
virtual

Implements FileSystemInterface.

◆ write()

int FileSystemImage::write ( int fd,
const void * buf,
unsigned count )
virtual

Implements FileSystemInterface.

◆ link()

int FileSystemImage::link ( const char * oldpath,
const char * newpath )
virtual

Reimplemented from FileSystemInterface.

◆ symlink()

int FileSystemImage::symlink ( const char * target,
const char * linkpath )
virtual

Implements FileSystemInterface.

◆ unlink()

int FileSystemImage::unlink ( const char * pathname)
virtual

Reimplemented from FileSystemInterface.

◆ rename()

int FileSystemImage::rename ( const char * oldpath,
const char * newpath )
virtual

Reimplemented from FileSystemInterface.

◆ mkdir()

int FileSystemImage::mkdir ( const char * pathname)
virtual

Implements FileSystemInterface.

◆ rmdir()

int FileSystemImage::rmdir ( const char * pathname)
virtual

Reimplemented from FileSystemInterface.

◆ truncate()

int FileSystemImage::truncate ( const char * path)
virtual

Reimplemented from FileSystemInterface.

◆ opendir()

FileSystemInterface::DirHandle * FileSystemImage::opendir ( const char * name)
virtual

Implements FileSystemInterface.

◆ readdir()

FileSystemInterface::DirEntry FileSystemImage::readdir ( FileSystemInterface::DirHandle * dirp)
virtual

Implements FileSystemInterface.

◆ rewinddir()

void FileSystemImage::rewinddir ( FileSystemInterface::DirHandle * dirp)
virtual

Implements FileSystemInterface.

◆ closedir()

int FileSystemImage::closedir ( FileSystemInterface::DirHandle * dirp)
virtual

Implements FileSystemInterface.

◆ stat()

FileSystemInterface::FileStats FileSystemImage::stat ( const char * path,
bool followSymlink = true )
virtual

Implements FileSystemInterface.

◆ getcwd()

int FileSystemImage::getcwd ( char * buf,
unsigned bufsiz )
virtual

Implements FileSystemInterface.

◆ sync()

void FileSystemImage::sync ( )
virtual

Implements FileSystemInterface.


The documentation for this class was generated from the following files: