KVFS improvements
This commit is contained in:
@ -20,9 +20,10 @@ typedef struct VfsMountPoint {
|
||||
uint8_t label[VFS_MOUNTPOINT_LABEL_MAX];
|
||||
int32_t fstype;
|
||||
|
||||
int32_t (*read)(struct VfsMountPoint *vmp, const char *path, uint8_t *const buffer, size_t n);
|
||||
int32_t (*write)(struct VfsMountPoint *vmp, const char *path, const uint8_t *const buffer, size_t n);
|
||||
int32_t (*read)(struct VfsMountPoint *vmp, const char *path, uint8_t *const buffer, size_t n, size_t off);
|
||||
int32_t (*write)(struct VfsMountPoint *vmp, const char *path, const uint8_t *const buffer, size_t n, size_t off);
|
||||
int32_t (*remove)(struct VfsMountPoint *vmp, const char *path);
|
||||
int32_t (*cleanup)(struct VfsMountPoint *vmp);
|
||||
bool (*check)(void);
|
||||
|
||||
union {
|
||||
@ -39,8 +40,9 @@ typedef struct {
|
||||
extern VfsTable VFS_TABLE;
|
||||
|
||||
void vfs_init(void);
|
||||
int32_t vfs_read(char *mountpoint, const char *path, uint8_t *const buffer, size_t n);
|
||||
int32_t vfs_write(char *mountpoint, const char *path, const uint8_t *const buffer, size_t n);
|
||||
int32_t vfs_read(char *mountpoint, const char *path, uint8_t *const buffer, size_t n, size_t off);
|
||||
int32_t vfs_write(char *mountpoint, const char *path, const uint8_t *const buffer, size_t n, size_t off);
|
||||
int32_t vfs_remove(char *mountpoint, const char *path);
|
||||
int32_t vfs_unmount(char *mountpoint);
|
||||
|
||||
#endif // VFS_VFS_H_
|
||||
|
Reference in New Issue
Block a user