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

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],