• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (6): 169-173.

• 论文 • 上一篇    下一篇

基于NandFLASH高可靠自恢复实时文件系统

张少波,徐广辉,田小锋,赵峰荣   

  1. (国网电力科学研究院南京南瑞集团公司,江苏 南京 210003)
  • 收稿日期:2011-04-16 修回日期:2011-06-28 出版日期:2012-06-25 发布日期:2012-06-25

A RealTime SelfRecovery File System Based on NandFLASH

ZHANG Shaobo,XU Guanghui,TIAN Xiaofeng,ZHAO Fengrong   

  1. (State Grid Electric Power Research Institute,Nanjing 210003,China)
  • Received:2011-04-16 Revised:2011-06-28 Online:2012-06-25 Published:2012-06-25

摘要:

本文提出一种基于NandFLASH的高可靠自恢复实时文件系统,将文件存储于一个或多个NandFLASH块中。文件的特征信息存储于FLASH块的第一页中,文件的内容存储于其余页中,形成文件块页映射关系。利用FLASH掉电不丢失数据的特性,在系统重新上电时,扫描所有FLASH块的第一页,将所有文件的特征信息读入内存,并据此在内存中自行重新构建文件系统;当文件特征信息发生变化时,将变化信息同步映射至文件目录中。可以在保留文件处理灵活性的同时大幅提高实时性,可广泛应用于电力、化工等自动化控制领域。

关键词: NandFLASH, 文件系统, 自恢复, 实时存储

Abstract:

In a realtime selfrecovery file system (RRFS) based on the NandFLASH memory, a file is stored in one or more NandFLASH blocks. The file’s specific information is stored in the first page of its NandFLASH block, and the file’s content is stored in other pages. Thus, it formats the mapping relationship among the file, the blocks and its pages. When the system restarts, the file’s specific information stored in the first page of all the FLASH blocks is read in RAM which is used to reconstruct a file list through the feature of NandFLASH’s no data loss during power failure. When the file’s specific information changes, the changed information will be rewritten in the file list, synchronously. The RRFS will make file processing flexible and quick, and be used in some automatic control fields, such as power systems and chemical engineering.

Key words: NandFLASH;file system;selfrecovery;realtime storage