trussed-dev / littlefs2

Idiomatic Rust API for littlefs

Home Page:https://lib.rs/littlefs2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for dynamic `BLOCK_COUNT`

jonas-schievink opened this issue · comments

Currently the user has to statically know the device size since BLOCK_COUNT is an associated constant. It would be useful if it would be possible to dynamically determine the device size instead.

I agree, mount should read it from the metadata (where I believe it's stored), and format should take it as parameter.