提交 6d9e4112 编写于 作者: C chenjing

Description: [fix]ftruncate bugfix

Bug: #I3NEVN
Test:
上级 9788d533
......@@ -6089,7 +6089,7 @@ FRESULT _mkfs(los_part *partition, int sector, int opt, BYTE *work, UINT len)
if (fmt == FS_FAT32) {
st_dword(buf + 0, 0xFFFFFFF8); /* Entry 0 */
st_dword(buf + 4, DISK_ERROR); /* Entry 1 */
st_dword(buf + 8, END_OF_FILE); /* Entry 2 (root directory) */
st_dword(buf + 8, FAT32_END_OF_FILE); /* Entry 2 (root directory) */
} else {
st_dword(buf + 0, (fmt == FS_FAT12) ? 0xFFFFF8 : 0xFFFFFFF8); /* Entry 0 and 1 */
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册