Working port of Little FS

This commit is contained in:
2025-08-16 20:35:00 +02:00
parent 2b0566c56f
commit 8da890e388
20 changed files with 332 additions and 19 deletions

View File

@ -1,6 +1,7 @@
#ifndef FS_KVFS_KVFS_H_
#define FS_KVFS_KVFS_H_
#include <stdint.h>
#include <stdbool.h>
struct VfsMountPoint;
@ -22,6 +23,7 @@ typedef struct {
int32_t kvfs_read(struct VfsMountPoint *vmp, const char *key, uint8_t *const buffer, size_t n, size_t off);
int32_t kvfs_write(struct VfsMountPoint *vmp, const char *key, const uint8_t *const buffer, size_t n, size_t off);
int32_t kvfs_remove(struct VfsMountPoint *vmp, const char *key);
int32_t kvfs_create(struct VfsMountPoint *vmp, const char *path, int32_t type);
int32_t kvfs_cleanup(struct VfsMountPoint *vmp);
bool kvfs_check(void);