v2.11
A small minor release, driven by features proposed by @sosthene-nitrokey and @yamt, with bug fixes from @DvdGiessen, @selimkeles, and yours truly.
What's new?
-
Thanks to @sosthene-nitrokey,
lfs_fs_grownow supports a limited form of filesystem shrinking (#1094)If compiled with
LFS_SHRINKNONRELOCATING,lfs_fs_growcan be used to reduce theblock_count, as long is it does not require block relocation. This provides a useful path for migrating from old filesystem images created when littlefs ignored the on-diskblock_count.Note that this is unreliable for general use. littlefs allocates blocks pseudorandomly as a part of wear-leveling, so
LFS_SHRINKNONRELOCATINGis unlikely to succeed even with small filesystems. -
Thanks to @yamt,
make testshould now work on Mac out of the box. This required linker and Makefile changes due to littlefs's test-runner quirks (, )