Split given fuse function into pieces
This commit is contained in:
+7
-1
@@ -38,6 +38,8 @@ typedef struct BlockStruct
|
||||
char byte[DEFAULTBLOCKSIZE];
|
||||
} BlockStruct;
|
||||
|
||||
// TODO: Adjust Inodes to be 128 inodes with 128 direct block references *each*
|
||||
// Slides exist for inode structure
|
||||
typedef struct InodeStruct
|
||||
{
|
||||
char filePath[256];
|
||||
@@ -53,7 +55,11 @@ typedef struct FileSystemStruct
|
||||
} FileSystemStruct;
|
||||
|
||||
void Fuse(int argc, char* argv[]);
|
||||
void FuseGetArgs(int argc, char* argv[], fuseArgStruct* fuseArgs);
|
||||
void GetArguments(int argc, char* argv[], fuseArgStruct* fuseArgs);
|
||||
void OpenFS(fuseArgStruct* fuseArgs, char* programPath);
|
||||
FileSystemStruct* SetupFS(fuseArgStruct* fuseArgs);
|
||||
void RunFuse(FileSystemStruct* fs, fuseArgStruct* fuseArgs);
|
||||
void TearDownFS(void);
|
||||
void FuseGivenTest(fuseArgStruct* fuseArgs, char* programPath);
|
||||
void FuseStructInit(fuseArgStruct* fuseStruct);
|
||||
void FuseUsageError(char* programPath);
|
||||
|
||||
@@ -10,10 +10,10 @@ extern unsigned char* tempfs;
|
||||
void MapFS(int fd);
|
||||
void UnmapFS(void);
|
||||
void FormatFS(FileSystemStruct* fs);
|
||||
void LoadFS(FileSystemStruct* fs);
|
||||
void LoadFS(FileSystemStruct** fs);
|
||||
void ListFS(FileSystemStruct* fs);
|
||||
void AddFileToFS(FileSystemStruct* fs, char* fname);
|
||||
void RemoveFileFromFS(FileSystemStruct* fs, char* fname);
|
||||
void ExtractFileFromFS(FileSystemStruct* fs, char* fname);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user