📄 apfs_fat32_write.c
字号:
//-----------------------------------------------------------------------------
// This file is part of AP.FS
// AP.FS is a FAT32 file system face to the embedded system,It's target is to
// support the portable storage device such as SD Card,TF Card or USB Disc 's
// file system.
// please login www.another-prj.com to get more details.
// caiyuqing
// 2008-1-8
//-----------------------------------------------------------------------------
#include "apfs_fat32_write.h"
BOOL apfs_fat32_add_file_entry(UINT32 dir_cluster,const char *file_name,
const char *short_file_name,
UINT32 start_cluster, UINT32 size)
{
}
//-----------------------------------------------------------------------------
// apfs_fat32_add_free_space_to_chain: Allocate another cluster of free space
// to the end of a files cluster chain.
//-----------------------------------------------------------------------------
BOOL apfs_fat32_add_free_space_to_chain(UINT32 *start_cluster)
{
UINT32 next_cluster;
// Set the next free cluster hint to unknown
apfs_fat32_set_fsInfo_next_cluster(0xFFFFFFFF);
// Start looking for free clusters from the beginning
if(apfs_fat32_find_blank_cluster(2, &next_cluster))
{
// Point last to this
// FAT32_SetClusterValue(*start_cluster, next_cluster);
// Point this to end of file
// FAT32_SetClusterValue(next_cluster, FAT32_EOC_FLAG);
// Adjust argument reference
*start_cluster = next_cluster;
return TRUE;
}
else
return FALSE;
}
BOOL apfs_fat32_allocate_free_space(BOOL new_file, UINT32 *start_cluster, UINT32 size)
{
}
BOOL apfs_fat32_find_free_offset(UINT32 dir_cluster, int entry_count,
UINT32 *psector, BYTE *poffset)
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -