Setup default files, test files next

This commit is contained in:
2022-11-14 21:46:44 -06:00
parent cd31743229
commit 3df863d285
7 changed files with 233 additions and 5 deletions
+27
View File
@@ -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
+17
View File
@@ -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
View File