Stopped segfaults by moving casting a step out of a function
This commit is contained in:
+4
-4
@@ -47,9 +47,9 @@ typedef struct InodeStruct
|
||||
|
||||
typedef struct FileSystemStruct
|
||||
{
|
||||
SuperBlockStruct* superBlock;
|
||||
FBLStruct* fbl;
|
||||
InodeStruct* inodes;
|
||||
SuperBlockStruct superBlock;
|
||||
FBLStruct fbl;
|
||||
InodeStruct inodes[DEFAULTINODEMAX];
|
||||
} FileSystemStruct;
|
||||
|
||||
void Fuse(int argc, char* argv[]);
|
||||
@@ -59,7 +59,7 @@ void FuseStructInit(fuseArgStruct* fuseStruct);
|
||||
void FuseUsageError(char* programPath);
|
||||
int zerosize(int fd);
|
||||
int FindEmptyBitPosition(int number);
|
||||
ino_t GetFreeInodeNumber(int* fbl);
|
||||
ino_t GetFreeInodeNumber(int fbl[]);
|
||||
void SetFileSystemDefaults(FileSystemStruct* fs);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
extern unsigned char* tempfs;
|
||||
|
||||
void MapFS(FileSystemStruct* fs, int fd);
|
||||
void UnmapFS(FileSystemStruct* fs);
|
||||
void MapFS(int fd);
|
||||
void UnmapFS(void);
|
||||
void FormatFS(FileSystemStruct* fs);
|
||||
void LoadFS(FileSystemStruct* fs);
|
||||
void ListFS(FileSystemStruct* fs);
|
||||
|
||||
Reference in New Issue
Block a user