From f963fb16ad17928b0331d21c748b8d9d9dd441bb Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Thu, 27 Aug 2026 01:30:02 +0800 Subject: [PATCH] =?UTF-8?q?debug(fat32):=20sfn=5Ffrom=5Flfn=20=E6=89=93?= =?UTF-8?q?=E5=8D=B0=20dot=5Fpos/i/ext=5Fi=20=E4=B8=8E=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=9A=84=20sfn=E2=80=94=E2=80=94Hello=20=E7=94=9F=E6=88=90=20H?= =?UTF-8?q?ELLO=20=E7=A9=BA=E6=A0=BC=EF=BC=88=E7=BC=BA=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E5=90=8D=EF=BC=89=EF=BC=8C=E5=AE=9A=E4=BD=8D=20for-in=20?= =?UTF-8?q?=E9=81=8D=E5=8E=86/=E6=89=A9=E5=B1=95=E5=90=8D=E5=86=99?= =?UTF-8?q?=E5=85=A5=E9=97=B4=E6=AD=87=E6=80=A7=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VKernel/Kernel/drivers/fs/fat32/fat32_types.vp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VKernel/Kernel/drivers/fs/fat32/fat32_types.vp b/VKernel/Kernel/drivers/fs/fat32/fat32_types.vp index 1d0453d..33fce2d 100644 --- a/VKernel/Kernel/drivers/fs/fat32/fat32_types.vp +++ b/VKernel/Kernel/drivers/fs/fat32/fat32_types.vp @@ -262,6 +262,10 @@ def sfn_from_lfn(lfn: t.CConst | t.CChar | t.CPtr, sfn: t.CChar | t.CPtr): sfn[6] = '~' sfn[7] = '1' sfn[11] = 0 + # [DIAG] 定位 sfn 缺扩展名(Hello 显示 HELLO 空格):打印 name 与 dot_pos/ext_i + _dsf: t.CArray[t.CChar, 80] + viperlib.snprintf(c.Addr(_dsf), 80, "[sfn2] dot=%d i=%d ext=%d sfn=%.11s\n", dot_pos, i, ext_i, sfn) + serial.puts(c.Addr(_dsf)) def sfn_to_str(sfn: t.CConst | t.CChar | t.CPtr, out: t.CChar | t.CPtr): i: t.CInt = 0