Reconcile uncertain LittleFS writes and preserve storage authority

Verify public images after every rename attempt, expose publication outcomes, and use an independent CRC32C fingerprint so valid IEEE-CRC-tailed images cannot mask a stale target. Preserve persistent formats and reject directories for empty images.

Reconcile uncertain migration journals before choosing filesystem authority. Preserve retained contact snapshots when page publication is unconfirmed without clearing dirty state or acknowledging the new page generation.

Add readback, rename, CRC-tail, migration reboot/quarantine, and snapshot eviction regressions. Keep complete RAK Full Companion within the unchanged OTA ceiling through equivalent code compaction, with no feature or validation cuts.
This commit is contained in:
mikecarper committed 2026-10-16 06:37:59 -07:00
1 parent 9df586df7e
commit 7b808eae47
8 files changed
+437 -42

No files matched your search

+2 -2
View File
@@ -125,8 +125,8 @@ inline void writeLE32(uint8_t* dest, uint32_t value) {
dest[3] = (uint8_t)(value >> 24);
}
// Same CRC convention as AtomicFileWriter: reflected CRC-32, initial value
// 0xFFFFFFFF, with no final xor. Keeping this incremental makes it usable on
// Persistent images use reflected IEEE CRC-32, initial value 0xFFFFFFFF,
// with no final xor. Keeping this incremental makes it usable on
// small targets without buffering an entire file.
inline uint32_t updateCRC32(uint32_t crc, const uint8_t* data, size_t len) {
while (len-- > 0) {