Removed old code

This commit is contained in:
TriantaTV 2022-12-02 13:42:40 -06:00
parent 86622536d6
commit 370c5bd505
2 changed files with 0 additions and 45 deletions

View File

@ -60,7 +60,6 @@ void OpenFS(fuseArgStruct* fuseArgs, char* programPath);
FileSystemStruct* SetupFS(fuseArgStruct* fuseArgs); FileSystemStruct* SetupFS(fuseArgStruct* fuseArgs);
void RunFuse(FileSystemStruct* fs, fuseArgStruct* fuseArgs); void RunFuse(FileSystemStruct* fs, fuseArgStruct* fuseArgs);
void TearDownFS(void); void TearDownFS(void);
void FuseGivenTest(fuseArgStruct* fuseArgs, char* programPath);
void FuseStructInit(fuseArgStruct* fuseStruct); void FuseStructInit(fuseArgStruct* fuseStruct);
void FuseUsageError(char* programPath); void FuseUsageError(char* programPath);
int zerosize(int fd); int zerosize(int fd);

View File

@ -20,7 +20,6 @@ void Fuse(int argc, char* argv[])
fsptr = SetupFS(&fuseArgs); fsptr = SetupFS(&fuseArgs);
RunFuse(fsptr, &fuseArgs); RunFuse(fsptr, &fuseArgs);
TearDownFS(); TearDownFS();
// FuseGivenTest(&fuseArgs, argv[0]);
} }
// Gets command line arguments and puts information into fuseArgs // Gets command line arguments and puts information into fuseArgs
@ -111,49 +110,6 @@ void TearDownFS(void)
return; return;
} }
// Given code for default functionality
void FuseGivenTest(fuseArgStruct* fuseArgs, char* programPath)
{
// FileSystemStruct* fsptr;
// if (!fuseArgs->filefsname)
// FuseUsageError(programPath);
// fuseArgs->fd = open(fuseArgs->fsname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
// if (fuseArgs->fd == -1)
// {
// perror("open failed");
// exit(EXIT_FAILURE);
// }
// if (zerosize(fuseArgs->fd))
// fuseArgs->newfs = 1;
// if (fuseArgs->newfs)
// {
// if (lseek(fuseArgs->fd, FSSIZE-1, SEEK_SET) == -1)
// {
// perror("seek failed");
// exit(EXIT_FAILURE);
// }
// if (write(fuseArgs->fd, "\0", 1) == -1)
// {
// perror("write failed");
// exit(EXIT_FAILURE);
// }
// }
// MapFS(fuseArgs->fd);
// if (fuseArgs->newfs)
// FormatFS();
// LoadFS(&fsptr);
// if (fuseArgs->add)
// AddFileToFS(fsptr, fuseArgs->toAdd);
// if (fuseArgs->remove)
// RemoveFileFromFS(fsptr, fuseArgs->toRemove);
// if (fuseArgs->extract)
// ExtractFileFromFS(fsptr, fuseArgs->toExtract);
// if(fuseArgs->list)
// ListFS(fsptr);
// UnmapFS();
}
// Initialize entire fuseStruct // Initialize entire fuseStruct
void FuseStructInit(fuseArgStruct* fuseStruct) void FuseStructInit(fuseArgStruct* fuseStruct)
{ {