C ++ / C virtual / embedded file system [Cross Compatible (Library)]?

I want to experiment with some virtual file systems, for example, with 1 file that stores all the data (1 file = virtual disk). For example, I can open a virtual disk and put files in it, write data to files, read data from a file, open files and use fseek, etc.

Is there any library I can use for this? Licensed material, etc. Not important. I just want to test it on my machine because I'm corrupted, so I want to try this in C ++ / C.

Thanks in advance!:)

If the library is just windows, then that too is normal, maybe I will find the linux library so that I can do 2 projects?


Edit: Thanks to BRPocock, I know that my question is a bit unclear. What I really want is a library that has the ability to store files, read files and perform file operations in VFS, which the library already provides. And, of course, installation. So, I would prefer if there is a library that gives me these functions in C ++:

OpenVirtualDrive(const name[]);//
CloseVirtualDrive(handle);//
fopen(const name[], mode);//open file, return handle
fclose(handle);//close handle
ftemp(); //open file as temporary file
fremove(const name[]);//delete file

fwrite(handle, array[]);//write array to file
fread(handle, array[], size = sizeof array, pack = false);//read from file
fputchar(handle, value, utf8 = true);//put char into file
fgetchar(handle, value, utf8 = true);//read char from file, move pointer
fblockwrite(handle, const buffer[], size = sizeof buffer);//write block
fblockread(handle, buffer[], size = sizeof buffer);//read block, move pointer

fseek(handle, position = 0, seek_whence: whence = seek_start);//move pointer
flength(handle);//size of file
fexist(const pattern[]);//check if file exists
fmatch(name[], const pattern[], index = 0, size = sizeof name);//search for file

This is just pseudo code: P

+3
source share
2 answers

SolFS . , . , , SolFS, , SolFS Application Edition .

+2

Linux ( BSD, , , MacOSX) FUSE (http://fuse.sourceforge.net/) . "".

, "" Windows - (.dll)... Google http://msdn.microsoft.com/en-us/windows/hardware/gg463062 , .

+4

All Articles