diff options
author | Andrew Leech <andrew.leech@planetinnovation.com.au> | 2025-06-26 14:58:06 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-07-23 15:51:08 +1000 |
commit | 6515cd05f17240c5d42d80638a55ce3b5ba4d1bf (patch) | |
tree | 48090c3abacfc79137a85183aa4b81e385cfb970 /docs/esp32/tutorial/intro.rst | |
parent | 28082d1d25c55a513677441c8053b82f6786aa3d (diff) |
extmod/vfs_lfsx: Allow overriding the LFS2 on-disk version format.
Back in LFS2 version 2.6 they updated the on-disk version from 2.0 to 2.1
which broke back compatibility (aka older versions could no long read new
version disk format), see
https://github.com/littlefs-project/littlefs/releases/tag/v2.6.0
Then in LFS2 v2.7 an optional `config->disk_version` was added to force the
library to use an older disk format instead, see:
https://github.com/littlefs-project/littlefs/releases/tag/v2.7.0
This commit simply exposes `config->disk_version` as a compile time option
if LFS2_MULTIVERSION is set, otherwise there is no change in behavior.
This is Useful for compatibility with older LFS versions.
Note: LFS2_MULTIVERSION needs to be defined at the make / CFLAGS level,
setting it in mpconfigboard.h doesn't work as it's not included in the
`lfs2.c` file in any way.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Diffstat (limited to 'docs/esp32/tutorial/intro.rst')
0 files changed, 0 insertions, 0 deletions