Added support for the basic file operation

Missing seek, but these are the core filesystem operations
provided by this filesystem:
- Read a file
- Append to a file

Additional work is needed around freeing the previous file, so
right now it's limited to appending to existing files, a real
append only filesystem. Unfortunately the overhead of the free
list with multiple open files is becoming tricky.
This commit is contained in:
Christopher Haster
2017-03-19 22:00:56 -05:00
parent 53674cb3bc
commit ed674e8414
3 changed files with 281 additions and 15 deletions
+1
View File
@@ -15,6 +15,7 @@ typedef uint32_t lfs_word_t;
typedef uint16_t lfs_hword_t;
typedef lfs_word_t lfs_size_t;
typedef int32_t lfs_ssize_t;
typedef lfs_word_t lfs_off_t;
typedef int lfs_error_t;