FTL诊断:探针窗口前移至f_mount前+页内容指纹(定位挂载期坏读来源)

This commit is contained in:
2026-09-20 05:16:27 +08:00
parent 0669471178
commit f05b056318
2 changed files with 10 additions and 2 deletions
+8 -2
View File
@@ -105,8 +105,14 @@ static int ftl_read_page(dhara_sector_t lpn) {
s_cached_lpn = lpn;
s_cache_dirty = 0;
if (s_tree_probe_log) {
DBG_INFO("ftl read LPN=%lu (binding see nand read lines)",
(unsigned long)lpn);
/* 内容指纹:前 8 字节(BPB=33 52 / FAT32=F8 FF.. / 擦除=FF FF..)
* 半新半旧混合页在此直接现形 */
DBG_INFO("ftl t %lu read LPN=%lu: %02X %02X %02X %02X %02X %02X %02X %02X",
(unsigned long)HAL_GetTick(), (unsigned long)lpn,
(unsigned int)s_cache_buf[0], (unsigned int)s_cache_buf[1],
(unsigned int)s_cache_buf[2], (unsigned int)s_cache_buf[3],
(unsigned int)s_cache_buf[4], (unsigned int)s_cache_buf[5],
(unsigned int)s_cache_buf[6], (unsigned int)s_cache_buf[7]);
}
return GD5F_OK;
}