introduce lfs->block_count. If cfg->block_count is 0, autopopulate from superblock

This commit is contained in:
Brian Pugh
2023-08-16 22:18:40 -07:00
parent 6dae7038f9
commit be6812213d
2 changed files with 41 additions and 15 deletions

2
lfs.h
View File

@@ -437,6 +437,8 @@ typedef struct lfs {
lfs_size_t file_max;
lfs_size_t attr_max;
lfs_size_t block_count;
#ifdef LFS_MIGRATE
struct lfs1 *lfs1;
#endif