11 Commits

Author SHA1 Message Date
Godzil
63a1cb6c11 Add a primitive write function and function to get the version.
MiniFFS is not really meant to write in the files, but in some cases it could be needed so that was added for that reason. If the changes are applied or not to the actual file is implementation dependent. So be careful.
2023-02-10 17:59:39 +00:00
Godzil
334ea87d25 Add missing boundary check when seeking in a file. 2023-02-10 17:59:36 +00:00
Godzil
bd96f10492 Block read was off by one. 2023-02-10 17:59:35 +00:00
Godzil
b6f0880a98 SEEK END was off by one. 2023-02-10 17:59:34 +00:00
Godzil
49f2cba7f4 Let's properly report an invalid filename instead of reporting file not found. 2023-02-10 17:59:33 +00:00
Godzil
9189728205 Let's be a bit more consistant with error reporting and having "NO ERROR" reported when a function do not fail. 2023-02-10 17:59:31 +00:00
Godzil
aa85a2c70b Fix some pedantism from C++ 2023-02-10 17:59:29 +00:00
Godzil
57f8283df7 Add first batch of tests
and fix some issues.
2023-02-10 17:59:28 +00:00
Godzil
86acbaa30f Made the memory backend, should somewhat work 2023-02-10 17:59:17 +00:00
Godzil
b31439bcb6 Now we can generate a fairly basic FS.
Added some test material
2023-02-10 17:59:15 +00:00
Godzil
675808e62f Initial commit 2023-02-10 17:59:04 +00:00