提交 cf972c7f 编写于 作者: C chenjing

fix: Add a log message.

Print log message when an exFat filesystem is recognized.

Close #I3O8IF
上级 ccd15d86
......@@ -2658,6 +2658,11 @@ BYTE check_fs ( /* 0:FAT, 2:Valid BS but not FAT, 3:Not a BS, 4:Disk error */
if (ld_word(fs->win + BS_55AA) != 0xAA55) return 3; /* Check boot record signature (always here regardless of the sector size) */
if (!mem_cmp(fs->win + BS_JmpBoot, "\xEB\x76\x90" "EXFAT ", 11)) { /* Check if exFAT VBR */
PRINTK("exFAT is not supported!\n");
return 2;
}
if (fs->win[BS_JmpBoot] == 0xE9 || fs->win[BS_JmpBoot] == 0xEB || fs->win[BS_JmpBoot] == 0xE8) { /* Valid JumpBoot code? */
if (!mem_cmp(fs->win + BS_FilSysType, "FAT", 3)) return 0; /* Is it an FAT VBR? */
if (!mem_cmp(fs->win + BS_FilSysType32, "FAT32", 5)) return 0; /* Is it an FAT32 VBR? */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册