StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
fs_index Class Referenceabstract
Inheritance diagram for fs_index:
sfs_index

Public Member Functions

int mountmem (char *buffer, int sz, int flags)
 
int mount (char *filename, int flags, int perms=0666)
 
int mount (int fd)
 
int mount (int ip, int port)
 
void umount ()
 
int mountsz ()
 
int cd (char *fn)
 
char * pwd ()
 
fs_diropendir (const char *dir)
 
void closedir (fs_dir *dir)
 
fs_direntreaddir (fs_dir *dir, fs_dirent *storage=NULL)
 
fs_direntreaddirent (const char *name, fs_dirent *storage=NULL)
 
fs_direntopendirent (const char *name)
 
int mem_ls (fs_filelist *filelist, int recurse, fs_dir *dir)
 
int read (const char *fn, char *buff, int sz)
 
virtual int write (char *fn, char *buff, int sz)
 
virtual int getwritevsz (fs_iovec *fsiovec, int n)
 
virtual int writev (fs_iovec *iovec, int n)
 
virtual int writev_sticky (fs_iovec *iovec, int n, int *sticky)
 
int fileSize (const char *fn)
 
void getFullPath (char *fullname, const char *name)
 
virtual void dump (int fd)=0
 

Static Public Member Functions

static void hexdump (char *buff, int sz)
 

Public Attributes

char cwd [256]
 
int n_inodes
 
wrapfile wfile
 

Protected Member Functions

fs_inodefind_child (fs_inode *parent, char *name)
 
void free_inode (fs_inode *inode)
 
fs_inodealloc_inode (const char *name, int off, int sz, int overhead)
 
virtual int _create ()=0
 
virtual int writeFsHeader ()
 
int initmount ()
 

Protected Attributes

int cdchanged
 
int oflags
 
int index_created
 
fs_inoderoot
 
fs_inodecw_inode
 
char * writevbuff
 
int writevbuffsz
 
char * _strtok_static_
 

Detailed Description

Definition at line 98 of file fs_index.h.


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