Merge pull request #1137 from dschendt/dschendt-fix-dir-count

fix: compact when dir count hits 0x3ff
This commit is contained in:
Christopher Haster 2025-09-29 15:10:42 -05:00 committed by GitHub
commit ed127050bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
lfs.c
View File

@ -2268,7 +2268,7 @@ static int lfs_dir_relocatingcommit(lfs_t *lfs, lfs_mdir_t *dir,
}
}
if (dir->erased) {
if (dir->erased && dir->count < 0xff) {
// try to commit
struct lfs_commit commit = {
.block = dir->pair[0],