Setup default files, test files next
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#ifndef FUSE_H
|
||||
#define FUSE_H
|
||||
|
||||
typedef struct fuseArgStruct
|
||||
{
|
||||
int create;
|
||||
int list;
|
||||
int add;
|
||||
int remove;
|
||||
int extract;
|
||||
char* toAdd;
|
||||
char* toRemove;
|
||||
char* toExtract;
|
||||
char* fsname;
|
||||
int fd;
|
||||
int newfs;
|
||||
int filefsname;
|
||||
} fuseArgStruct;
|
||||
|
||||
void Fuse(int argc, char* argv[]);
|
||||
void FuseCheckArgs(int argc, char* argv[], fuseArgStruct* fuseArgs);
|
||||
void FuseGivenTest(fuseArgStruct* fuseArgs, char* programPath);
|
||||
void FuseStructInit(fuseArgStruct* fuseStruct);
|
||||
void FuseUsageError(char* programPath);
|
||||
int zerosize(int fd);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef FUSEACTIONS_H
|
||||
#define FUSEACTIONS_H
|
||||
|
||||
#define FSSIZE 10000000
|
||||
|
||||
extern unsigned char* fs;
|
||||
|
||||
void mapfs(int fd);
|
||||
void unmapfs();
|
||||
void formatfs();
|
||||
void loadfs();
|
||||
void lsfs();
|
||||
void addfilefs(char* fname);
|
||||
void removefilefs(char* fname);
|
||||
void extractfilefs(char* fname);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user