2022-11-14 21:46:44 -06:00
|
|
|
#ifndef FUSEACTIONS_H
|
|
|
|
#define FUSEACTIONS_H
|
|
|
|
|
2022-11-25 18:03:45 -06:00
|
|
|
#include "fuse.h"
|
2022-11-14 21:46:44 -06:00
|
|
|
|
2022-11-25 18:03:45 -06:00
|
|
|
#define FSSIZE 10000000
|
2022-11-14 21:46:44 -06:00
|
|
|
|
2022-11-25 23:51:27 -06:00
|
|
|
extern unsigned char* tempfs;
|
|
|
|
|
2022-11-26 23:56:41 -06:00
|
|
|
void MapFS(int fd);
|
|
|
|
void UnmapFS(void);
|
2022-12-03 18:35:51 -06:00
|
|
|
void FormatFS(FileSystem* fs);
|
|
|
|
void LoadFS(FileSystem** fs);
|
|
|
|
void ListFS(FileSystem* fs);
|
|
|
|
void _RecursivePrintFS_(FileSystem* fs, ino_t inodePosition);
|
|
|
|
int FindNextDirectory(char* fname);
|
|
|
|
void AddFileToFS(FileSystem* fs, char* fname);
|
|
|
|
void _RecursiveAddFS_(FileSystem* fs, char* fname);
|
|
|
|
void RemoveFileFromFS(FileSystem* fs, char* fname);
|
|
|
|
void ExtractFileFromFS(FileSystem* fs, char* fname);
|
2022-11-14 21:46:44 -06:00
|
|
|
|
2022-12-02 13:35:38 -06:00
|
|
|
#endif
|