diff options
| author | Daniël van de Giessen <daniel@dvdgiessen.nl> | 2025-05-13 13:50:42 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-05-26 12:17:27 +1000 |
| commit | 9dbae39348e2c95190d808bc14a0e8adb1c3b8be (patch) | |
| tree | 48beb5e7d495bb1aa0985f0df39f78b8dbb0cb9e /lib/littlefs/lfs2.h | |
| parent | 670b7c93505a3995bcb7ba9af5cb721994414a1f (diff) | |
lib/littlefs: Update LittleFS to v2.11.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'lib/littlefs/lfs2.h')
| -rw-r--r-- | lib/littlefs/lfs2.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/littlefs/lfs2.h b/lib/littlefs/lfs2.h index f503fd00b..77477aaff 100644 --- a/lib/littlefs/lfs2.h +++ b/lib/littlefs/lfs2.h @@ -21,7 +21,7 @@ extern "C" // Software library version // Major (top-nibble), incremented on backwards incompatible changes // Minor (bottom-nibble), incremented on feature additions -#define LFS2_VERSION 0x0002000a +#define LFS2_VERSION 0x0002000b #define LFS2_VERSION_MAJOR (0xffff & (LFS2_VERSION >> 16)) #define LFS2_VERSION_MINOR (0xffff & (LFS2_VERSION >> 0)) @@ -766,7 +766,11 @@ int lfs2_fs_gc(lfs2_t *lfs2); // Grows the filesystem to a new size, updating the superblock with the new // block count. // -// Note: This is irreversible. +// If LFS2_SHRINKNONRELOCATING is defined, this function will also accept +// block_counts smaller than the current configuration, after checking +// that none of the blocks that are being removed are in use. +// Note that littlefs's pseudorandom block allocation means that +// this is very unlikely to work in the general case. // // Returns a negative error code on failure. int lfs2_fs_grow(lfs2_t *lfs2, lfs2_size_t block_count); |
