WIP added file/fs set/get attr implementations

This commit is contained in:
Christopher Haster
2018-04-08 16:58:12 -05:00
parent 0347416b89
commit 9af404db09
2 changed files with 219 additions and 97 deletions

5
lfs.h
View File

@@ -283,7 +283,7 @@ typedef struct lfs_cache {
typedef struct lfs_file {
struct lfs_file *next;
lfs_block_t pair[2];
lfs_off_t poff;
lfs_off_t pairoff;
lfs_block_t head;
lfs_size_t size;
@@ -294,6 +294,9 @@ typedef struct lfs_file {
lfs_block_t block;
lfs_off_t off;
lfs_cache_t cache;
const struct lfs_attr *attrs;
int attrcount;
} lfs_file_t;
typedef struct lfs_dir {