Eclipse LevelX 6.5.1.202602 Release Notes
This release introduces an important performance improvement for NAND flash operations with the addition of opt-in lazy sector release, significantly reducing deletion complexity on large drives.
Vulnerabilities Addressed
No new vulnerabilities were addressed in this release. You can access advisories for previously addressed vulnerabilities here.
Highlights
Lazy Sector Release for NAND Flash
A new opt-in lazy sector release mechanism has been added to address the O(N²) deletion complexity that occurred when releasing sectors from full blocks. (#71, @fdesbiens)
When LX_NAND_FLASH_ENABLE_LAZY_SECTOR_RELEASE is defined and free blocks exceedLX_NAND_FLASH_SECTOR_RELEASE_LAZY_THRESHOLD (default: 10), releasing a sector from a full block defers thecopy+erase operation. A tombstone page is written to a freshly allocated block, and the old block is flagged as COMPACTION_PENDING. Compaction is then triggered lazily by sector writes, wear-levelling moves, defragmentation, and block allocation.
Crash recovery is fully supported: on re-open, COMPACTION_PENDING blocks are detected and either aborted or resumed depending on the state at the time of the crash.
Without the flag, all existing code paths remain unchanged.
Note: This feature has not been tested beyond the existing regression suite. It should be thoroughly validated — including stress, power-loss, and wear-levelling scenarios — before use in any production system.
Full Changelog: v6.5.0.202601_rel...v6.5.1.202602_rel