exfat文件系统(七)------exfat_core.c详解(二)------file entry相关
2015-09-02 15:54
561 查看
在cluster heap中的exfat file entry从64M.hex中可以看出如下图显示记录其entry的信息:
在对应的entry数据中分别对应代码中的如下数据结构(64M.hex中的截图颜色和数据结构颜色对应)
typedef struct {
UINT8 type;
UINT8 num_ext;
UINT8 checksum[2];
UINT8 attr[2];
UINT8 reserved1[2];
UINT8 create_time[2];
UINT8 create_date[2];
UINT8 modify_time[2];
UINT8 modify_date[2];
UINT8 access_time[2];
UINT8 access_date[2];
UINT8 create_time_ms;
UINT8 modify_time_ms;
UINT8 access_time_ms;
UINT8 reserved2[9];
} FILE_DENTRY_T;
typedef struct {
UINT8 type;
UINT8 flags;
UINT8 reserved1;
UINT8 name_len;
UINT8 name_hash[2];
UINT8 reserved2[2];
UINT8 valid_size[8];
UINT8 reserved3[4];
UINT8 start_clu[4];
UINT8 size[8];
} STRM_DENTRY_T;
typedef struct {(黄色框图数据信息)
UINT8 type;
UINT8 flags;
UINT8 unicode_0_14[30];
} NAME_DENTRY_T;
以上数据结构主要在如下函数中解析和调用到:
exfat_find_dir_entry(返回查找到的file的entry值,即file在cluster的偏移量)
get_entry_set_in_dir(获取到file entry的完整数据信息,并把相关数据信息指针指向返回值ep)
在对应的entry数据中分别对应代码中的如下数据结构(64M.hex中的截图颜色和数据结构颜色对应)
typedef struct {
UINT8 type;
UINT8 num_ext;
UINT8 checksum[2];
UINT8 attr[2];
UINT8 reserved1[2];
UINT8 create_time[2];
UINT8 create_date[2];
UINT8 modify_time[2];
UINT8 modify_date[2];
UINT8 access_time[2];
UINT8 access_date[2];
UINT8 create_time_ms;
UINT8 modify_time_ms;
UINT8 access_time_ms;
UINT8 reserved2[9];
} FILE_DENTRY_T;
typedef struct {
UINT8 type;
UINT8 flags;
UINT8 reserved1;
UINT8 name_len;
UINT8 name_hash[2];
UINT8 reserved2[2];
UINT8 valid_size[8];
UINT8 reserved3[4];
UINT8 start_clu[4];
UINT8 size[8];
} STRM_DENTRY_T;
typedef struct {(黄色框图数据信息)
UINT8 type;
UINT8 flags;
UINT8 unicode_0_14[30];
} NAME_DENTRY_T;
以上数据结构主要在如下函数中解析和调用到:
exfat_find_dir_entry(返回查找到的file的entry值,即file在cluster的偏移量)
get_entry_set_in_dir(获取到file entry的完整数据信息,并把相关数据信息指针指向返回值ep)
相关文章推荐
- ios https请求
- Java____Eclipse下JUnit单元测试(初级)
- 创意网页导航设计!
- MQTT lua例子
- python脚本批量修改华为交换机端口配置
- 分分钟掌握快速排序
- OFDM之插入导频---802.11a
- Servlet操作Cookie制作工具类以及Cookie的生命周期
- OC 总结
- U3D 获取inputfield 的内容
- openwrt下加载snmp模块
- 设计模式,会毁了WUI?
- 打印下面由*号组成的图案
- function前面分号是什么用处介绍
- 谷歌大脑科学家 Caffe缔造者 贾扬清 微信讲座完整版
- 一个简单的boot sector程序
- struts2配置文件解读
- LeetCode 124: Binary Tree Maximum Path Sum 树形动态规划
- 3个关于隐形设计的方法
- 三个方法指导交互设计师进行风险预判