-
公开(公告)号:US07203792B2
公开(公告)日:2007-04-10
申请号:US10835892
申请日:2004-04-29
申请人: Chang Jian Lou , Fang He
发明人: Chang Jian Lou , Fang He
IPC分类号: G06F12/00
CPC分类号: G06F17/30067
摘要: A method for modifying file contents of a flash file stored in a flash memory while balancing wear of the flash memory includes: finding first file nodes recording the file contents to be modified; searching for a plurality of void file nodes in the flash memory, selecting void nodes as second file nodes, and sequencing the second nodes based on node versions thereof; writing modified contents of the first nodes to one or more of the second nodes in ascending order of node versions of the second nodes; building node link information of the second nodes that have been written; marking the first nodes with a predetermined flag; vacating the first nodes that have been marked with the predetermined flag, and canceling node link information of the first nodes; and updating node versions of the second nodes that have been written and the first nodes that have been vacated.
摘要翻译: 一种用于在平衡闪存的磨损的同时修改存储在闪存中的闪存文件的文件内容的方法包括:找到记录要修改的文件内容的第一文件节点; 搜索闪存中的多个空白文件节点,选择空格节点作为第二文件节点,并根据其节点版本对第二节点排序; 以第二节点的节点版本的升序将第一节点的修改内容写入一个或多个第二节点; 构建已经写入的第二节点的节点链接信息; 用预定标志标记第一个节点; 取消已经标记了预定标志的第一节点,并且取消第一节点的节点链接信息; 并更新已经写入的第二个节点的节点版本和已经腾空的第一个节点。