[go: up one dir, main page]

CN100454302C - A file management system and management method - Google Patents

A file management system and management method Download PDF

Info

Publication number
CN100454302C
CN100454302C CNB2005101143944A CN200510114394A CN100454302C CN 100454302 C CN100454302 C CN 100454302C CN B2005101143944 A CNB2005101143944 A CN B2005101143944A CN 200510114394 A CN200510114394 A CN 200510114394A CN 100454302 C CN100454302 C CN 100454302C
Authority
CN
China
Prior art keywords
version
file
parameter storage
parameter
storage unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005101143944A
Other languages
Chinese (zh)
Other versions
CN1758253A (en
Inventor
李海建
刘红军
吴从海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNB2005101143944A priority Critical patent/CN100454302C/en
Publication of CN1758253A publication Critical patent/CN1758253A/en
Application granted granted Critical
Publication of CN100454302C publication Critical patent/CN100454302C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种文件管理系统及管理方法,用于对嵌入式系统中的版本文件进行安全管理。该文件管理系统包括:第一参数存储单元,用于存储所述版本文件的参数信息;第二参数存储单元,用于与所述第一参数存储单元互为主备,存储所述版本文件的参数信息;文件存储单元,用于根据所述第一或第二参数存储单元记录的版本文件的参数信息,存储所述版本文件,其中,每个文件都具有A版本与B版本,按照位置参数分别存储。本发明的方法基于上述系统对嵌入式系统中的版本文件进行管理。利用本发明可以提高嵌入式系统的可靠性并降低产品的维护成本,从而增强产品的市场竞争力。

Figure 200510114394

The invention discloses a file management system and a management method, which are used for safely managing version files in an embedded system. The file management system includes: a first parameter storage unit, configured to store parameter information of the version file; a second parameter storage unit, configured to be mutually active and backup with the first parameter storage unit, and to store the version file information Parameter information; a file storage unit, used to store the version file according to the parameter information of the version file recorded by the first or second parameter storage unit, wherein each file has A version and B version, according to the position parameter stored separately. The method of the present invention manages the version files in the embedded system based on the above system. The invention can improve the reliability of the embedded system and reduce the maintenance cost of the product, thereby enhancing the market competitiveness of the product.

Figure 200510114394

Description

一种文件管理系统及管理方法 A file management system and management method

技术领域 technical field

本发明涉及文件管理技术领域,尤其涉及一种文件管理系统及管理方法。The invention relates to the technical field of file management, in particular to a file management system and a management method.

背景技术 Background technique

目前,在人们的生活中出现了越来越多的嵌入式设备,这些设备往往是内嵌处理器的计算机系统,通讯系统是这方面的代表。现在的通讯系统正变的越来越复杂,一个系统,往往由数量众多的具有处理能力的节点组成,这些节点往往就是一个嵌入式的计算机系统。而通讯系统是对可靠性要求很高的系统,对于通讯系统中各个处理节点的版本文件的管理也提出了很高的要求。At present, more and more embedded devices appear in people's lives. These devices are often computer systems with embedded processors, and communication systems are representative of this aspect. The current communication system is becoming more and more complex. A system is often composed of a large number of nodes with processing capabilities, and these nodes are often an embedded computer system. The communication system is a system that requires high reliability, and it also puts forward high requirements for the management of version files of each processing node in the communication system.

由于通讯系统本身的复杂性,通讯系统存在着以纠正软件缺陷为目的的软件版本升级要求;通讯系统功能扩展,比如通过软件升级来支持新的业务功能,客观也需要版本的升级。版本维护是通讯系统操作维护的一项重要内容。软件的本身的复杂性(可能误操作),以及一些异常情况的发生(如断电)都可能导致版本的破坏。一旦版本损坏,系统不能正常启动,一方面会极大的增加维护成本,另一方面作为商用产品的提供者,对提供商的信誉以及后续市场机会也会造成不良影响。Due to the complexity of the communication system itself, the communication system has software version upgrade requirements for the purpose of correcting software defects; the function expansion of the communication system, such as supporting new business functions through software upgrades, also requires version upgrades objectively. Version maintenance is an important part of communication system operation and maintenance. The complexity of the software itself (possible misuse), and the occurrence of some abnormal conditions (such as power failure) may lead to the destruction of the version. Once the version is damaged, the system cannot start normally. On the one hand, it will greatly increase the maintenance cost. On the other hand, as a provider of commercial products, it will also have a negative impact on the provider's reputation and subsequent market opportunities.

因而,面对复杂的以通讯系统为代表的嵌入式系统,一方面需要提供一种版本文件管理系统实现对众多软件版本的方便管理,同时又需要提供一种必要的手段来保证版本文件操作的安全性。Therefore, in the face of complex embedded systems represented by communication systems, on the one hand, it is necessary to provide a version file management system to realize the convenient management of many software versions, and at the same time, it is necessary to provide a necessary means to ensure the operation of version files. safety.

发明内容 Contents of the invention

本发明所要解决的技术问题在于,提供一种文件管理系统及管理方法,对嵌入式系统中版本文件管理系统进行了特殊设计,提供文件操作的安全机制,保证版本文件操作的安全性和高可靠性;同时屏蔽安全机制实现的复杂性,以方便上层应用的使用。The technical problem to be solved by the present invention is to provide a file management system and management method, which specially designs the version file management system in the embedded system, provides a security mechanism for file operation, and ensures the safety and high reliability of the version file operation Sex; at the same time shield the complexity of the implementation of the security mechanism to facilitate the use of upper-layer applications.

本发明提供一种文件管理系统,用于对嵌入式系统中的版本文件进行安全管理,所述系统包括:The present invention provides a file management system for safely managing version files in an embedded system, the system comprising:

第一参数存储单元,用于存储所述版本文件的参数信息,包括参数存储单元有效标志与序列号,以及每个文件的名称、A版本主备标志、A版本位置、B版本主备标志、B版本位置等;The first parameter storage unit is used to store the parameter information of the version file, including the parameter storage unit effective sign and serial number, and the name of each file, A version master and backup signs, A version position, B version master and backup signs, B version location, etc.;

第二参数存储单元,用于与所述第一参数存储单元互为主备,存储所述版本文件的参数信息,包括参数存储单元有效标志与序列号,以及每个文件的名称、A版本主备标志、A版本位置、B版本主备标志、B版本位置等;The second parameter storage unit is used to be mutually active and standby with the first parameter storage unit, and store the parameter information of the version file, including the effective flag and serial number of the parameter storage unit, as well as the name of each file, version A master Standby logo, A version location, B version master/standby logo, B version location, etc.;

文件存储单元,用于根据所述第一或第二参数存储单元记录的文件参数,存储所述版本文件,其中,每个文件都具有A版本与B版本,按照位置参数分别存储。The file storage unit is configured to store the version files according to the file parameters recorded by the first or second parameter storage unit, wherein each file has a version A and a version B, which are stored respectively according to position parameters.

所述的第一与第二参数存储单元,进一步包括A版本有效标志和B版本有效标志。The first and second parameter storage units further include a valid flag for version A and a valid flag for version B.

所述的文件管理系统进一步包括:The document management system further includes:

主备参数判断单元,用于根据所述第一与第二参数存储单元记录的单元有效标志与序列号信息,在所述第一与第二参数存储单元中判断出主用参数存储单元与备用参数存储单元。The main and standby parameter judging unit is used to judge the main parameter storage unit and the standby parameter storage unit in the first and second parameter storage units according to the unit effective flag and serial number information recorded in the first and second parameter storage units. Parameter storage unit.

所述的文件管理系统进一步包括:The document management system further includes:

主备参数倒换单元,用于根据所述主备参数判断单元判断出的主用与备用参数存储单元,读取当前主用参数存储单元的数据映象到内存,将与由上层应用提供的文件名相对应的文件参数信息中的A版本主备标志与B版本主备标志倒换,将该主用参数存储单元记录的单元有效标志设为有效,将序列号递增,并将修改后的当前主用参数存储单元的映象数据写入当前备用参数存储单元,以替换原数据。The master-standby parameter switching unit is used to read the data image of the current master parameter storage unit into the internal memory according to the master and spare parameter storage unit judged by the master-standby parameter judging unit, and compare it with the file provided by the upper layer application In the file parameter information corresponding to the file name, the active and standby flags of the A version and the active and standby flags of the B version are switched, and the effective flag of the unit recorded in the main parameter storage unit is set to valid, the serial number is incremented, and the modified current master Write the current backup parameter storage unit with the image data of the parameter storage unit to replace the original data.

所述的文件管理系统进一步包括:The document management system further includes:

读操作单元,用于根据由上层应用提供的文件名,在所述主备参数判断单元判断的主用参数存储单元中,查找该文件的A版本与B版本的主备状态,确定当前主用版本及其位置,并据此读出主用版本的文件数据。The read operation unit is used to search the active and standby states of version A and version B of the file in the active parameter storage unit judged by the active and standby parameter judging unit according to the file name provided by the upper layer application, and determine the current active version and its location, and read out the file data of the master version accordingly.

所述的文件管理系统进一步包括:The document management system further includes:

写操作单元,用于根据由上层应用提供的文件名,在所述主备参数判断单元判断的主用参数存储单元中,查找该文件的A版本与B版本的主备状态,确定当前备用版本及其位置,并在该位置写入新的文件数据以替换原有数据,再利用所述主备参数倒换单元倒换主备状态。Write operation unit, for according to the file name that is provided by upper-level application, in the master parameter storage unit judged by described master-standby parameter judging unit, look up the main-standby status of version A and version B of this file, determine current standby version and its position, and write new file data in this position to replace the original data, and then use the master-standby parameter switching unit to switch the master-standby state.

所述的主备参数判断单元,包括:The main and standby parameter judging unit includes:

单元有效标志判断单元,用于比对第一与第二参数存储单元记录的单元有效标志,如果只有一个有效,则有效的参数存储单元为主用,另一个为备用;A unit effective flag judging unit is used to compare the unit effective flags recorded in the first and second parameter storage units. If only one is valid, the effective parameter storage unit is the main one, and the other one is the backup;

序列号判断单元,用于在所述第一与第二参数存储单元记录的单元有效标志都为有效时,进一步比对所述序列号的大小,大的为主用,小的为备用。The serial number judging unit is used to further compare the size of the serial number when the unit valid flags recorded in the first and second parameter storage units are both valid, and the larger one is used as the main one, and the smaller one is reserved.

本发明进一步提供一种利用所述文件管理系统对嵌入式系统中的版本文件进行管理的方法,用于对文件进行读操作,其特征在于,包括如下步骤:The present invention further provides a method for using the file management system to manage version files in the embedded system, for reading the files, which is characterized in that it includes the following steps:

在第一与第二参数存储单元中选择主用参数存储单元;selecting the primary parameter storage unit from the first and second parameter storage units;

根据由上层应用提供的文件名,在所述主用参数存储单元中查找到对应文件的参数信息;Find the parameter information of the corresponding file in the main parameter storage unit according to the file name provided by the upper layer application;

根据所述对应文件的参数信息的A版本与B版本的主备状态,确定主用版本及其存储位置;According to the active and standby states of version A and version B of the parameter information of the corresponding file, determine the main version and its storage location;

根据主用版本的存储位置,读取文件数据到用户缓冲区。According to the storage location of the main version, read the file data to the user buffer.

所述选择主用参数存储单元的步骤,包括如下步骤:The step of selecting the main parameter storage unit includes the following steps:

读取第一与第二参数存储单元中记录的单元有效标志信息;reading unit effective flag information recorded in the first and second parameter storage units;

判断该单元有效标志信息的有效性;Judging the validity of the effective flag information of the unit;

如果只有一个有效,则有效的参数存储单元为主用;If only one is valid, the valid parameter storage unit is the master;

如果都有效,则进一步读取并比对第一与第二参数存储单元中记录的序列号信息,数值大的为主用。If they are all valid, further read and compare the serial number information recorded in the first and second parameter storage units, and the one with the larger value is the main one.

本发明进一步提供一种利用所述文件管理系统对嵌入式系统中的版本文件进行管理的方法,用于对文件进行写操作,其特征在于,包括如下步骤:The present invention further provides a method for using the file management system to manage version files in an embedded system for writing files, which is characterized in that it includes the following steps:

在第一与第二参数存储单元中选择主用参数存储单元;selecting the primary parameter storage unit from the first and second parameter storage units;

根据由上层应用提供的文件名,在所述主用参数存储单元中查找到对应文件的参数信息;Find the parameter information of the corresponding file in the main parameter storage unit according to the file name provided by the upper layer application;

根据所述对应文件的信息记录的A版本与B版本的主备状态,确定备用版本及其存储位置;According to the primary and secondary states of version A and version B recorded in the information of the corresponding file, determine the backup version and its storage location;

在备用版本存储区域写入新的版本文件数据以替换原有数据;Write new version file data in the standby version storage area to replace the original data;

读取当前主用参数存储单元的数据映象到内存;Read the data image of the current main parameter storage unit to the memory;

将与由上层应用提供的文件名相对应的文件参数信息中的A版本主备标志与B版本主备标志倒换;Switching the active and standby flags of version A and the active and standby flags of version B in the file parameter information corresponding to the file name provided by the upper layer application;

将该主用参数存储单元记录的单元有效标志设为有效,将序列号递增;Set the unit valid flag recorded in the main parameter storage unit as valid, and increment the serial number;

将修改后的当前主用参数存储单元的映象数据写入当前备用参数存储单元,以替换原数据。Write the modified image data of the current main parameter storage unit into the current standby parameter storage unit to replace the original data.

所述选择主用参数存储单元的步骤,包括如下步骤:The step of selecting the main parameter storage unit includes the following steps:

读取第一与第二参数存储单元中记录的单元有效标志信息;reading unit effective flag information recorded in the first and second parameter storage units;

判断该单元有效标志信息的有效性;Judging the validity of the effective flag information of the unit;

如果只有一个有效,则有效的参数存储单元为主用;If only one is valid, the valid parameter storage unit is the master;

如果都有效,则进一步读取并比对第一与第二参数存储单元中记录的序列号信息,数值大的为主用。If they are all valid, further read and compare the serial number information recorded in the first and second parameter storage units, and the one with the larger value is the main one.

本发明进一步提供一种利用所述文件管理系统对嵌入式系统中的版本文件进行管理的方法,用于对指定文件A、B版本的主备属性进行倒换,其特征在于,包括如下步骤:The present invention further provides a method for using the file management system to manage version files in the embedded system, for switching the active and standby attributes of the specified file A and B versions, characterized in that it includes the following steps:

在第一与第二参数存储单元中选择主用参数存储单元;selecting the primary parameter storage unit from the first and second parameter storage units;

读取当前主用参数存储单元的数据映象到内存;Read the data image of the current main parameter storage unit to the memory;

将与由上层应用提供的文件名相对应的文件参数信息中的A版本主备标志与B版本主备标志倒换;Switching the active and standby flags of version A and the active and standby flags of version B in the file parameter information corresponding to the file name provided by the upper layer application;

将该主用参数存储单元记录的单元有效标志设为有效,将序列号递增;Set the unit valid flag recorded in the main parameter storage unit as valid, and increment the serial number;

将修改后的当前主用参数存储单元的映象数据写入当前备用参数存储单元,以替换原数据。Write the modified image data of the current main parameter storage unit into the current standby parameter storage unit to replace the original data.

所述选择主用参数存储单元的步骤,包括如下步骤:The step of selecting the main parameter storage unit includes the following steps:

读取第一与第二参数存储单元中记录的单元有效标志信息;reading unit effective flag information recorded in the first and second parameter storage units;

判断该单元有效标志信息的有效性;Judging the validity of the effective flag information of the unit;

如果只有一个有效,则有效的参数存储单元为主用;If only one is valid, the valid parameter storage unit is the master;

如果都有效,则进一步读取并比对第一与第二参数存储单元中记录的序列号信息,数值大的为主用。If they are all valid, further read and compare the serial number information recorded in the first and second parameter storage units, and the one with the larger value is the main one.

本发明通过对嵌入式系统中的文件管理系统进行特殊设计,对版本文件采用双版本存放以及倒换机制,在方便上层应用使用的前提下,对文件及其状态的更新实现了事务型操作,可以有效的实现版本文件更新的可靠性操作,大大增强系统的可靠性,防止版本文件维护中可能出现的版本破坏;同时,通过屏蔽文件系统内部实现的复杂性,方便了文件的使用者。利用本发明所述文件管理系统及管理方法可以显著提高嵌入式系统的可靠性并降低产品的维护成本,从而提高产品的市场竞争力。The present invention specially designs the file management system in the embedded system, adopts a dual-version storage and switching mechanism for version files, and implements transactional operations for updating files and their status on the premise of facilitating the use of upper-layer applications, which can Effectively realize the reliability operation of version file update, greatly enhance the reliability of the system, and prevent version damage that may occur during version file maintenance; at the same time, it is convenient for file users by shielding the complexity of the internal implementation of the file system. Utilizing the file management system and the management method of the invention can significantly improve the reliability of the embedded system and reduce the maintenance cost of the product, thereby improving the market competitiveness of the product.

附图说明 Description of drawings

图1是本发明实施例中文件系统的存储器物理空间示意图;FIG. 1 is a schematic diagram of the storage physical space of the file system in the embodiment of the present invention;

图2是本发明实施例中文件系统的文件系统参数区结构示意图;Fig. 2 is a schematic structural diagram of the file system parameter area of the file system in the embodiment of the present invention;

图3是本发明实施例中文件系统的参数区头部信息结构示意图;Fig. 3 is a schematic diagram of the header information structure of the parameter area of the file system in the embodiment of the present invention;

图4是本发明实施例中文件系统的文件记录的组成格式示意图。Fig. 4 is a schematic diagram of the composition format of the file records of the file system in the embodiment of the present invention.

具体实施方式 Detailed ways

下面结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments, but not as a limitation of the present invention.

本文件管理系统主要通过实现文件更改的事务型操作,包括读操作、写操作和主备参数倒换,来保证版本的可靠操作,防止版本文件维护中可能出现的版本破坏。本文件管理系统一般存在于系统中的FLASH(电可擦除的非易失存储器件)存储器上,但不限于FLASH存储器件。This file management system mainly ensures the reliable operation of the version and prevents version damage that may occur during version file maintenance by implementing transactional operations of file changes, including read operations, write operations, and master-standby parameter switching. This file management system generally exists on the FLASH (electrically erasable non-volatile storage device) memory in the system, but is not limited to the FLASH storage device.

图1示出了本发明文件管理系统的存储器物理空间示意图,其中所述的第一参数存储单元为文件系统参数区A,所述的第二参数存储单元为文件系统参数区B,所述的文件存储单元为文件数据区。如图1所示,本系统中将物理存储划分为3个基本部分,前两个部分用作文件系统参数区,用来存放文件系统本身信息(文件相关信息)。两参数区一主一备。第三个区域用作存放实际版本文件数据,其使用划分情况在主用系统参数区中规定(通过文件信息记录)。Fig. 1 shows a schematic diagram of the memory physical space of the file management system of the present invention, wherein the first parameter storage unit is the file system parameter area A, the second parameter storage unit is the file system parameter area B, and the The file storage unit is the file data area. As shown in Figure 1, the physical storage is divided into three basic parts in this system, and the first two parts are used as the file system parameter area to store the information of the file system itself (file-related information). Two parameter areas, one master and one backup. The third area is used to store the actual version file data, and its use division is stipulated in the main system parameter area (recorded by file information).

在逻辑上,本文件管理系统有以下特点:Logically, this file management system has the following characteristics:

第一,文件系统逻辑上分为两个部分,一部分是文件系统参数区(类似于文件分配表),用于存放文件的各种信息状态(文件存储位置、有效性、主备状态等),以下简称为“参数区”;另一部分是文件数据区,用于存放实际的文件数据。文件系统的结构对于上层应用(文件的使用者)是不可见的,用以屏蔽文件系统内部实现的复杂性,方便使用。First, the file system is logically divided into two parts, one part is the file system parameter area (similar to the file allocation table), which is used to store various information states of the file (file storage location, validity, master and backup status, etc.), Hereinafter referred to as "parameter area"; the other part is the file data area, which is used to store actual file data. The structure of the file system is invisible to upper-layer applications (users of files), which is used to shield the complexity of the internal implementation of the file system and facilitate use.

第二,在文件系统内部实现时针对单个文件设立两个存储区,写操作时,先写备存储区,然后主备倒换;读操作,主存储区有效,从主存储区读取数据;这些操作的细节对于上层应用(文件的使用者)是不可见的,用以屏蔽文件系统内部实现的复杂性,方便使用。Second, when implementing inside the file system, two storage areas are set up for a single file. When writing operations, the standby storage area is first written, and then the active and standby storage areas are switched; for reading operations, the main storage area is valid, and data is read from the main storage area; these The details of the operation are invisible to the upper-layer application (the user of the file), which is used to shield the complexity of the internal implementation of the file system and facilitate use.

第三,对上层应用(文件的使用者),文件系统屏蔽内部安全机制的实现细节。对于上层应用,一个文件是对应于一个存储版本,对文件的读写通过文件名字进行,上层应用不知道文件系统内部实现的双版本存放以及倒换机制。Third, for upper-layer applications (users of files), the file system shields the implementation details of the internal security mechanism. For the upper-layer application, a file corresponds to a storage version, and the reading and writing of the file is performed through the file name. The upper-layer application does not know the dual-version storage and switching mechanism implemented inside the file system.

第四,对文件系统参数区也设立两个存储区,在进行版本文件更新时,需要更改文件系统参数区的文件相关信息,对参数区也进行主备倒换,以支持对文件以及文件状态修改的事务型操作。通过倒换文件系统参数区的操作方式,不仅保证了单个文件的操作上的安全性,而且也对整个文件系统的安全提供了安全保护机制。如果不是采用倒换机制,一旦造成参数区的破坏,则会导致整个文件系统的破坏。Fourth, two storage areas are also set up for the file system parameter area. When updating the version file, it is necessary to change the file-related information in the file system parameter area, and perform active-standby switchover for the parameter area to support file and file status modification. transactional operations. By switching the operation mode of the file system parameter area, not only the security of the operation of a single file is guaranteed, but also a security protection mechanism is provided for the security of the entire file system. If the switching mechanism is not adopted, once the parameter area is damaged, the entire file system will be destroyed.

第五,本文件系统提供对文件改写的事务型操作,保护的基本单位是整个文件,而不是文件的一个部分。Fifth, the file system provides transactional operations for file rewriting, and the basic unit of protection is the entire file, not a part of the file.

在物理上,本文件系统有以下特点:Physically, this file system has the following characteristics:

第一,本文件系统将存储区域分为3个区域,前2个区域是文件系统参数区A和B,存放系统中所有文件的相关信息,如存放位置、主备状态以及有效性信息等;只有主参数区是有效的。First, this file system divides the storage area into three areas, the first two areas are the file system parameter area A and B, which store relevant information of all files in the system, such as storage location, master and backup status, and validity information; Only the main parameter area is valid.

第二,在改变文件状态信息时,先将主用参数区映象读至内存,然后对文件信息进行更改,再将更新后的主参数区映象写入备用参数区,通过参数区的主备切换来实现文件数据以及状态信息的安全更新。Second, when changing the status information of the file, first read the image of the main parameter area into the internal memory, then modify the file information, and then write the updated image of the main parameter area into the standby parameter area. The backup switch is used to realize the safe update of file data and status information.

第三,一个文件采用一个文件名字标志,对于使用文件的上层应用来说,一个文件名唯一的对应一个文件版本,而文件的内部存放则分配两个存放区域,有主备之分,主版本有效,用户读取的永远是主用版本,Third, a file uses a file name flag. For the upper-layer application that uses the file, a file name uniquely corresponds to a file version, and the internal storage of the file is allocated two storage areas, which are divided into master and backup. Valid, the user will always read the main version,

图2示出了本文件系统的文件系统参数区结构。主要包含一个文件系统参数区的头部和一系列文件信息记录,每个文件信息记录对应一个文件,并通过文件名字标志和索引,系统中文件名字是唯一的,不提供目录功能。Fig. 2 shows the structure of the file system parameter area of the present file system. It mainly includes the header of a file system parameter area and a series of file information records. Each file information record corresponds to a file, and through the file name mark and index, the file name in the system is unique, and the directory function is not provided.

其中,所述文件系统参数区的头部如图3所示,其包含几个域,如表格1所示,用来判断文件系统参数区的主备状态。对参数区主备的判断方法将在后续内容说明表格1Wherein, the header of the file system parameter area is shown in FIG. 3 , which includes several fields, as shown in Table 1, for judging the master and backup status of the file system parameter area. The method of judging the master and backup of the parameter area will be explained in Table 1 in the follow-up content

  域 area   长度 length  描述 describe 有效标志valid flag 44  用于标志该参数区的有效性,常数0x5555AAAA标志有效,其他数值表示无效。 It is used to mark the validity of the parameter area, the constant 0x5555AAAA is valid, and other values are invalid. 序列号serial number 44  在每次参数区倒换时,该序列号加1,用来防止在出现两个参数区都有效时判别有效区。 Each time the parameter area is switched, the sequence number is increased by 1 to prevent valid area identification when both parameter areas are valid.   保留 reserve   8 8  保留,不使用。 Reserved, not used.

其中,所述文件信息记录的格式如图4所示,其包含若干信息域,各个域的含义见表格2,指示文件相关信息。Wherein, the format of the file information record is shown in FIG. 4 , which includes several information fields, and the meaning of each field is shown in Table 2, which indicates file-related information.

表格2Form 2

  域 area   长度(字节) length (bytes)   描述 describe   文件名字 file name   16 16   用于标志版本文件的字符串 A string used to identify the version file   A版本地址 A version address   4 4   A版本存放位置 A version storage location   A版本长度 A version length   4 4   A区存放版本实际长度 Area A stores the actual length of the version   A版本最大长度 A version maximum length   4 4   A版本长度限制,防止所写文件过大,损坏其他文件 A version length limit to prevent the written file from being too large and damaging other files   A版本有效标志 Valid flag of version A   2 2   A版本有效标志 Valid flag of version A   A版本主备标志 A version master and backup flag   2 2   A版本主备状态 Active and standby status of version A   B版本地址 B version address   4 4   B版本存放位置 B version storage location   B版本长度 B version length   4 4   B区存放版本实际长度 The actual length of the version stored in area B   B版本最大长度 B version maximum length   4 4   B版本长度限制,防止所写文件过大,损坏其他文件 The B version length limit prevents the written file from being too large and damaging other files   B版本有效标志 B version effective flag   2 2   B版本有效标志 B version effective flag   B版本主备标志 B version master and backup flags   2 2   B版本主备状态 Active and standby status of version B

基于以上所述的文件管理系统,本文件系统的处理机制保证了主用版本的绝对安全。在用户对文件读的时候,文件系统将读取主用版本的内容传递给用户,所述读操作需要由读操作单元来实现;在用户对文件进行写操作的时候,文件系统将针对备用存储区进行写操作,写操作成功之后,对两个版本存储区进行主备的切换,所述写操作由写操作单元来实现;在这种情况下,对版本文件的所有操作是原子性的事务操作。也就是说,对文件的操作如果不成功,文件系统状态将保持在本操作之前的原有状态。Based on the above-mentioned file management system, the processing mechanism of this file system ensures the absolute security of the main version. When the user reads the file, the file system will pass the read content of the main version to the user, and the read operation needs to be realized by the read operation unit; when the user writes the file, the file system will target the backup storage After the write operation is successful, switch between the main and backup versions of the two version storage areas, and the write operation is implemented by the write operation unit; in this case, all operations on the version file are atomic transactions operate. That is to say, if the operation on the file is unsuccessful, the state of the file system will remain in the original state before the operation.

此外,因为在文件系统内部,正常情况下每个文件有主备两个版本,为满足一些其他测试和安全要求,还提供文件的主备切换接口,实现文件主备用版本的主备切换,其切换由主备参数倒换单元来实现。In addition, because in the file system, under normal circumstances, each file has two main and backup versions. In order to meet some other testing and security requirements, the main and standby switching interface of the file is also provided to realize the main and standby switching of the main and standby versions of the file. The switching is realized by the active-standby parameter switching unit.

由于对文件的所有操作都涉及到参数区的主备判断,下面对参数区的主备判断方法进行阐述,其主备判断由主备参数判断单元来实现。Since all the operations on the file involve the master/standby judgment of the parameter area, the master/standby judgment method of the parameter area is described below, and the master/standby judgment is realized by the master/standby parameter judgment unit.

对参数区主备状态进行判断的方法如下:The method of judging the master and backup status of the parameter area is as follows:

步骤1:读取两个参数区头部。Step 1: Read the headers of the two parameter areas.

步骤2:判断头部有效标志的有效性,如果只有一个有效,那么有效的那个为主,另一个为备,返回结束。Step 2: Judge the validity of the header valid flag, if only one is valid, then the valid one is the master and the other one is the backup, return to end.

步骤3:如果两个都有效,那么我们对参数区头部的序列号进行比较,来判断参数区的主备。序列号大的那个为主,序列号小的那个为备。(有效标志定为常数0x5555AAAA,序列号在第一次文件系统初始化时初始化为0,以后每发生一次主备倒换,增加1)。Step 3: If both are valid, then we compare the serial numbers at the head of the parameter area to determine the master and backup of the parameter area. The one with the larger serial number is the primary, and the one with the smaller serial number is the backup. (The effective flag is set as a constant 0x5555AAAA, and the serial number is initialized to 0 when the file system is initialized for the first time, and will be increased by 1 each time an active-standby switchover occurs thereafter).

下面针对读操作、写操作及主备参数倒换操作各自的实现步骤具体说明。The implementation steps of the read operation, the write operation, and the active/standby parameter switching operation are described in detail below.

本发明第一实施例是对文件的读操作,由读操作单元来实现。The first embodiment of the present invention is the read operation of the file, which is realized by the read operation unit.

下面对读操作进行说明,读操作比较简单,同时也不更改文件系统,不会造成文件或者文件系统的破坏,包括如下步骤:The following describes the read operation. The read operation is relatively simple and does not change the file system at the same time, and will not cause damage to the file or file system. It includes the following steps:

步骤101:选择主用参数区。Step 101: Select the main parameter area.

步骤102:在主用参数区文件信息记录中根据文件使用者提供的文件名字索引到相关文件记录。Step 102: Index to related file records in the file information records in the main parameter area according to the file name provided by the file user.

步骤103:从步骤102找到的文件记录中找到主用版本存储位置、长度等信息。Step 103: From the file record found in step 102, find information such as the storage location and length of the main version.

步骤104:读取文件数据到用户缓冲区。Step 104: Read file data to user buffer.

本发明第二实施例是对文件的写操作,由写操作单元来实现。The second embodiment of the present invention is the write operation to the file, which is realized by the write operation unit.

下面对写操作进行说明,写操作相对复杂一点,通过对文件主备存储区域的倒换来实现文件写的事务型操作,而文件主备存储区域的倒换是通过文件系统参数区的主备倒换来实现的,包括如下步骤:The write operation is described below. The write operation is relatively complicated. The transactional operation of file writing is realized by switching the primary and secondary storage areas of the file, and the switching of the primary and secondary storage areas of the file is through the primary and secondary switching of the file system parameter area. To achieve, including the following steps:

步骤201:获取两参数区主备状态。Step 201: Obtain the active and standby states of the two parameter areas.

步骤202:根据文件名字在主参数区索引到相关文件信息记录。Step 202: Index to relevant file information records in the main parameter area according to the file name.

步骤203:从步骤202找到的文件信息记录中找到备用版本存储位置。Step 203: find the backup version storage location from the file information record found in step 202.

步骤204:如果存储器是FLASH器件,对备用版本存储区进行擦除。Step 204: If the memory is a FLASH device, erase the spare version storage area.

步骤205:在备用版本存储区域写入用户版本文件数据。Step 205: Write user version file data in the standby version storage area.

步骤206:如果存储器是FLASH器件,擦除备用文件系统参数区。Step 206: If the memory is a FLASH device, erase the spare file system parameter area.

步骤207:读取主用文件系统参数区映象到内存,将对应文件的原有主区主备信息设置为备,同时将原有备区(当前文件操作区)的主备信息设置为主并设置有效标志为有效,并将映象中参数区头部序列号加1。Step 207: Read the image of the primary file system parameter area to the memory, set the primary and backup information of the original primary area of the corresponding file as the backup, and set the primary and secondary information of the original backup area (current file operation area) as the primary And set the valid flag to be valid, and add 1 to the serial number of the head of the parameter area in the image.

步骤208:文件系统参数区主备切换(将步骤207中经过更改的主用参数区映象写入备用文件系统参数区),此时已经实现文件主备用版本的切换。Step 208: Master-standby switching of the file system parameter area (write the changed master parameter area image into the backup file system parameter area in step 207), at this time the switching of the file master and backup versions has been realized.

在这个操作过程中,我们对文件的操作是在文件备用存储区进行的,如果期间出现的任何问题(比如异常断电),那么文件系统参数区就不会实现主备切换,因而对于整个文件系统参数区以及正在操作的文件原有内容(存在于主存储区)是没有影响的;如果文件系统的主备用参数区成功进行了切换,那么整个版本文件的更新过程就一定是完整执行的(成功的)。这样就实现了对版本文件更改的事务型操作。During this operation, we operate on the file in the file backup storage area. If any problems occur during the period (such as abnormal power failure), then the file system parameter area will not realize the master-standby switch, so for the entire file The system parameter area and the original content of the file being operated (existing in the main storage area) are not affected; if the main and standby parameter areas of the file system are successfully switched, then the update process of the entire version file must be completely executed ( successful). This enables transactional operations on versioned file changes.

本发明第三实施例是对文件的文件主备切换,由主备参数倒换单元来实现。The third embodiment of the present invention is the master/backup switching of files, which is realized by the master/backup parameter switching unit.

下面对文件主备倒换操作进行说明,主备倒换操作类似写操作,只是它没有对文件内容的操作,只是对文件系统主用参数区中的文件主备属性进行修改,所以只涉及文件系统参数区的主备倒换,包括如下步骤:The following describes the master-slave switchover operation of the file. The master-slave switchover operation is similar to the write operation, except that it does not operate on the file content, but only modifies the master-slave attribute of the file in the main parameter area of the file system, so it only involves the file system. The active/standby switchover in the parameter area includes the following steps:

步骤301:获取两参数区主备状态。Step 301: Obtain the active and standby states of the two parameter areas.

步骤302:读取当前主用参数区的映象到内存。Step 302: Read the image of the current main parameter area into the memory.

步骤303:根据文件名字在内存中的主用参数区映象中索引到文件信息记录。Step 303: Index to the file information record in the main parameter area image in the internal memory according to the file name.

步骤304:将步骤303主参数区映象中索引到的文件信息记录中两个存储区的主备用标志倒换。Step 304: Switch the main and standby flags of the two storage areas in the file information record indexed in the main parameter area map in step 303.

步骤305:主用参数区内存映象头部的序列号增加1,并设置参数区有效标志为有效。Step 305: Increase the serial number of the head of the memory image in the main parameter area by 1, and set the effective flag of the parameter area to be valid.

步骤306:如果存储器是FLASH器件,擦除当前备用参数区。Step 306: If the memory is a FLASH device, erase the current spare parameter area.

步骤307:将步骤305中经过修改的主用参数区映象写入备用参数区。Step 307: Write the image of the active parameter area modified in step 305 into the standby parameter area.

经过了这个过程,参数区进行了主备倒换,而倒换后主用参数区中的相应文件的主备信息已经得到了修改,从而实现了文件内容的主备倒换,同样,这个过程也是事务型的操作。After this process, the master/standby switchover is performed in the parameter area, and the master/standby information of the corresponding file in the master parameter area has been modified after the switchover, thus realizing the master/standby switchover of the file content. Similarly, this process is also transactional operation.

本发明通过一种新方法,对嵌入式系统中版本文件管理系统进行了特殊设计,在方便上层应用使用的前提下,实现文件更改的事务型操作,可以保证文件操作的高可靠性,防止版本文件维护中可能出现的版本破坏。可以显著提高嵌入式系统的可靠性并降低产品的维护成本,从而提高产品的市场竞争力。The present invention uses a new method to specially design the version file management system in the embedded system. Under the premise of being convenient for upper-layer applications, it can realize the transactional operation of file modification, which can ensure the high reliability of file operation and prevent version Possible version corruption during file maintenance. The reliability of the embedded system can be significantly improved and the maintenance cost of the product can be reduced, thereby improving the market competitiveness of the product.

Claims (13)

1、一种文件管理系统,用于对嵌入式系统中的版本文件进行安全管理,其特征在于,包括:1, a kind of file management system, is used for carrying out security management to the version file in the embedded system, is characterized in that, comprises: 第一参数存储单元,用于存储所述版本文件的参数信息,包括单元有效标志与序列号,以及每个文件的名称、A版本主备标志、A版本位置、B版本主备标志、B版本位置;The first parameter storage unit is used to store the parameter information of the version file, including unit valid flag and serial number, and the name of each file, A version master and backup flag, A version position, B version master and backup flag, B version Location; 第二参数存储单元,用于与所述第一参数存储单元互为主备,存储所述版本文件的参数信息,包括单元有效标志与序列号,以及每个文件的名称、A版本主备标志、A版本位置、B版本主备标志、B版本位置;The second parameter storage unit is used to interact with the first parameter storage unit as master and backup, and store the parameter information of the version file, including unit valid flag and serial number, and the name of each file, A version master and backup flag , A version location, B version master/standby flag, B version location; 文件存储单元,用于根据所述第一或第二参数存储单元记录的文件参数,存储所述版本文件,其中,每个文件都具有A版本与B版本,按照位置参数分别存储。The file storage unit is configured to store the version files according to the file parameters recorded by the first or second parameter storage unit, wherein each file has a version A and a version B, which are stored respectively according to position parameters. 2、如权利要求1所述的系统,其特征在于,所述的第一与第二参数存储单元,进一步包括A版本有效标志和B版本有效标志。2. The system according to claim 1, wherein said first and second parameter storage units further include a valid flag for version A and a valid flag for version B. 3、如权利要求1所述的系统,其特征在于,进一步包括:3. The system of claim 1, further comprising: 主备参数判断单元,用于根据所述第一与第二参数存储单元记录的单元有效标志与序列号信息,在所述第一与第二参数存储单元中判断出主用参数存储单元与备用参数存储单元。The main and standby parameter judging unit is used to judge the main parameter storage unit and the standby parameter storage unit in the first and second parameter storage units according to the unit effective flag and serial number information recorded in the first and second parameter storage units. Parameter storage unit. 4、如权利要求3所述的系统,其特征在于,进一步包括:4. The system of claim 3, further comprising: 主备参数倒换单元,用于根据所述主备参数判断单元判断出的主用与备用参数存储单元,读取当前主用参数存储单元的数据映象到内存,将与由上层应用提供的文件名相对应的文件参数信息中的A版本主备标志与B版本主备标志倒换,将该主用参数存储单元记录的单元有效标志设为有效,将序列号递增,并将修改后的当前主用参数存储单元的映象数据写入当前备用参数存储单元,以替换原数据。The master-standby parameter switching unit is used to read the data image of the current master parameter storage unit into the internal memory according to the master and spare parameter storage unit judged by the master-standby parameter judging unit, and compare it with the file provided by the upper layer application In the file parameter information corresponding to the file name, the active and standby flags of the A version and the active and standby flags of the B version are switched, and the effective flag of the unit recorded in the main parameter storage unit is set to valid, the serial number is incremented, and the modified current master Write the current backup parameter storage unit with the image data of the parameter storage unit to replace the original data. 5、如权利要求3所述的系统,其特征在于,进一步包括:5. The system of claim 3, further comprising: 读操作单元,用于根据由上层应用提供的文件名,在所述主备参数判断单元判断的主用参数存储单元中,查找该文件的A版本与B版本的主备状态,确定当前主用版本及其位置,并据此读出主用版本的文件数据。The read operation unit is used to search the active and standby states of version A and version B of the file in the active parameter storage unit judged by the active and standby parameter judging unit according to the file name provided by the upper layer application, and determine the current active version and its location, and read out the file data of the master version accordingly. 6、如权利要求4所述的系统,其特征在于,进一步包括:6. The system of claim 4, further comprising: 写操作单元,用于根据由上层应用提供的文件名,在所述主备参数判断单元判断的主用参数存储单元中,查找该文件的A版本与B版本的主备状态,确定当前备用版本及其位置,并在该位置写入新的文件数据以替换原有数据,再利用所述主备参数倒换单元倒换主备状态。Write operation unit, for according to the file name that is provided by upper-level application, in the master parameter storage unit judged by described master-standby parameter judging unit, look up the main-standby status of version A and version B of this file, determine current standby version and its position, and write new file data in this position to replace the original data, and then use the master-standby parameter switching unit to switch the master-standby state. 7、如权利要求3所述的系统,其特征在于,所述的主备参数判断单元,包括:7. The system according to claim 3, wherein the main and standby parameter judging unit comprises: 单元有效标志判断单元,用于比对第一与第二参数存储单元记录的单元有效标志,如果只有一个有效,则有效的参数存储单元为主用,另一个为备用;A unit effective flag judging unit is used to compare the unit effective flags recorded in the first and second parameter storage units. If only one is valid, the effective parameter storage unit is the main one, and the other one is the backup; 序列号判断单元,用于在所述第一与第二参数存储单元记录的单元有效标志都为有效时,进一步比对所述序列号的大小,大的为主用,小的为备用。The serial number judging unit is used to further compare the size of the serial number when the unit valid flags recorded in the first and second parameter storage units are both valid, and the larger one is used as the main one, and the smaller one is reserved. 8、一种利用如权利要求1所述的系统对嵌入式系统中的版本文件进行管理的方法,用于对文件进行读操作,其特征在于,包括如下步骤:8. A method for managing version files in an embedded system using the system as claimed in claim 1, for performing a read operation on the files, comprising the steps of: 在第一与第二参数存储单元中选择主用参数存储单元;selecting the primary parameter storage unit from the first and second parameter storage units; 根据由上层应用提供的文件名,在所述主用参数存储单元中查找到对应文件的参数信息;Find the parameter information of the corresponding file in the main parameter storage unit according to the file name provided by the upper layer application; 根据所述对应文件的参数信息的A版本与B版本的主备状态,确定主用版本及其存储位置;According to the active and standby states of version A and version B of the parameter information of the corresponding file, determine the main version and its storage location; 根据主用版本的存储位置,读取文件数据到用户缓冲区。According to the storage location of the main version, read the file data to the user buffer. 9、如权利要求8所述的方法,其特征在于,所述选择主用参数存储单元的步骤,包括如下步骤:9. The method according to claim 8, wherein the step of selecting the main parameter storage unit comprises the following steps: 读取第一与第二参数存储单元中记录的单元有效标志信息;reading unit effective flag information recorded in the first and second parameter storage units; 判断该单元有效标志信息的有效性;Judging the validity of the effective flag information of the unit; 如果只有一个有效,则有效的参数存储单元为主用;If only one is valid, the valid parameter storage unit is the master; 如果都有效,则进一步读取并比对第一与第二参数存储单元中记录的序列号信息,数值大的为主用。If they are all valid, further read and compare the serial number information recorded in the first and second parameter storage units, and the one with the larger value is the main one. 10、一种利用如权利要求1所述的系统对嵌入式系统中的版本文件进行管理的方法,用于对文件进行写操作,其特征在于,包括如下步骤:10. A method for managing version files in an embedded system using the system according to claim 1, for writing files, comprising the steps of: 在第一与第二参数存储单元中选择主用参数存储单元;selecting the primary parameter storage unit from the first and second parameter storage units; 根据由上层应用提供的文件名,在所述主用参数存储单元中查找到对应文件的参数信息;Find the parameter information of the corresponding file in the main parameter storage unit according to the file name provided by the upper layer application; 根据所述对应文件的参数信息的A版本与B版本的主备状态,确定备用版本及其存储位置;According to the primary and secondary states of version A and version B of the parameter information of the corresponding file, determine the backup version and its storage location; 在备用版本存储区域写入新的版本文件数据以替换原有数据;Write new version file data in the standby version storage area to replace the original data; 读取当前主用参数存储单元的数据映象到内存;Read the data image of the current main parameter storage unit to the memory; 将与由上层应用提供的文件名相对应的文件参数信息中的A版本主备标志与B版本主备标志倒换;Switching the active and standby flags of version A and the active and standby flags of version B in the file parameter information corresponding to the file name provided by the upper layer application; 将该主用参数存储单元记录的单元有效标志设为有效,将序列号递增;Set the unit valid flag recorded in the main parameter storage unit as valid, and increment the serial number; 将修改后的当前主用参数存储单元的映象数据写入当前备用参数存储单元,以替换原数据。Write the modified image data of the current main parameter storage unit into the current standby parameter storage unit to replace the original data. 11、如权利要求10所述的方法,其特征在于,所述选择主用参数存储单元的步骤,包括如下步骤:11. The method according to claim 10, wherein the step of selecting the main parameter storage unit comprises the following steps: 读取第一与第二参数存储单元中记录的单元有效标志信息;reading unit effective flag information recorded in the first and second parameter storage units; 判断该单元有效标志信息的有效性;Judging the validity of the effective flag information of the unit; 如果只有一个有效,则有效的参数存储单元为主用;If only one is valid, the valid parameter storage unit is the master; 如果都有效,则进一步读取并比对第一与第二参数存储单元中记录的序列号信息,数值大的为主用。If they are all valid, further read and compare the serial number information recorded in the first and second parameter storage units, and the one with the larger value is the main one. 12、一种利用如权利要求1所述的系统对嵌入式系统中的版本文件进行管理的方法,用于对指定文件A、B版本的主备属性进行倒换,其特征在于,包括如下步骤:12. A method for managing version files in an embedded system using the system as claimed in claim 1, for switching the active and standby attributes of the specified file A and B versions, characterized in that it comprises the following steps: 在第一与第二参数存储单元中选择主用参数存储单元;selecting the primary parameter storage unit from the first and second parameter storage units; 读取当前主用参数存储单元的数据映象到内存;Read the data image of the current main parameter storage unit to the memory; 将与由上层应用提供的文件名相对应的文件参数信息中的A版本主备标志与B版本主备标志倒换;Switching the active and standby flags of version A and the active and standby flags of version B in the file parameter information corresponding to the file name provided by the upper layer application; 将该主用参数存储单元记录的单元有效标志设为有效,将序列号递增;Set the unit valid flag recorded in the main parameter storage unit as valid, and increment the serial number; 将修改后的当前主用参数存储单元的映象数据写入当前备用参数存储单元,以替换原数据。Write the modified image data of the current main parameter storage unit into the current standby parameter storage unit to replace the original data. 13、如权利要求12所述的方法,其特征在于,所述选择主用参数存储单元的步骤,包括如下步骤:13. The method according to claim 12, wherein the step of selecting the main parameter storage unit comprises the following steps: 读取第一与第二参数存储单元中记录的单元有效标志信息;reading unit effective flag information recorded in the first and second parameter storage units; 判断该单元有效标志信息的有效性;Judging the validity of the effective flag information of the unit; 如果只有一个有效,则有效的参数存储单元为主用;If only one is valid, the valid parameter storage unit is the master; 如果都有效,则进一步读取并比对第一与第二参数存储单元中记录的序列号信息,数值大的为主用。If they are all valid, further read and compare the serial number information recorded in the first and second parameter storage units, and the one with the larger value is the main one.
CNB2005101143944A 2005-10-24 2005-10-24 A file management system and management method Expired - Fee Related CN100454302C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101143944A CN100454302C (en) 2005-10-24 2005-10-24 A file management system and management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101143944A CN100454302C (en) 2005-10-24 2005-10-24 A file management system and management method

Publications (2)

Publication Number Publication Date
CN1758253A CN1758253A (en) 2006-04-12
CN100454302C true CN100454302C (en) 2009-01-21

Family

ID=36703625

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101143944A Expired - Fee Related CN100454302C (en) 2005-10-24 2005-10-24 A file management system and management method

Country Status (1)

Country Link
CN (1) CN100454302C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100405315C (en) * 2006-08-09 2008-07-23 北京中星微电子有限公司 Method for verifying embedded file system reliability
JP4961606B2 (en) * 2006-08-29 2012-06-27 アイシン・エィ・ダブリュ株式会社 Data management system, update file generation system, and data update method
KR101303177B1 (en) * 2007-06-22 2013-09-17 삼성전자주식회사 Non-volatile memory device and operating method of the same
CN101753349B (en) * 2008-12-09 2012-08-15 中国移动通信集团公司 Upgrading method of data node, upgrade dispatching node as well as upgrading system
CN106528440B (en) * 2014-03-26 2020-06-09 青岛海信宽带多媒体技术有限公司 Flash memory operation method and device based on embedded system
CN104537119B (en) * 2015-01-26 2018-01-16 浪潮天元通信信息系统有限公司 A kind of data cached update method, data use end and system
CN107220091B (en) * 2017-06-08 2020-06-26 成都欧飞凌通讯技术有限公司 Upgrading and switching method for 100G CFP (circulating fluid protocol) main/standby image file
CN110908706B (en) * 2019-11-28 2023-10-17 上海电气富士电机电气技术有限公司 Multi-version software management method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002251418A (en) * 2001-02-23 2002-09-06 Matsushita Electric Ind Co Ltd EDA library management method
WO2004051472A1 (en) * 2002-12-04 2004-06-17 International Business Machines Corporation A synchronization method in an n-tier transaction
WO2005015401A2 (en) * 2003-08-06 2005-02-17 Oracle International Corporation A database management system with efficient version control
CN1619533A (en) * 2003-11-17 2005-05-25 鸿富锦精密工业(深圳)有限公司 Flash memory file management system and method
CN1622087A (en) * 2003-04-29 2005-06-01 国际商业机器公司 Managing file system versions
CN1648857A (en) * 2004-01-28 2005-08-03 三星电子株式会社 Auto version managing system and method for use in software

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002251418A (en) * 2001-02-23 2002-09-06 Matsushita Electric Ind Co Ltd EDA library management method
WO2004051472A1 (en) * 2002-12-04 2004-06-17 International Business Machines Corporation A synchronization method in an n-tier transaction
CN1622087A (en) * 2003-04-29 2005-06-01 国际商业机器公司 Managing file system versions
WO2005015401A2 (en) * 2003-08-06 2005-02-17 Oracle International Corporation A database management system with efficient version control
CN1619533A (en) * 2003-11-17 2005-05-25 鸿富锦精密工业(深圳)有限公司 Flash memory file management system and method
CN1648857A (en) * 2004-01-28 2005-08-03 三星电子株式会社 Auto version managing system and method for use in software

Also Published As

Publication number Publication date
CN1758253A (en) 2006-04-12

Similar Documents

Publication Publication Date Title
CN109783017B (en) Method, device and storage device for processing bad block of storage device
US7363540B2 (en) Transaction-safe FAT file system improvements
US9817588B2 (en) Memory device and operating method of same
CN101401076B (en) Method and device for using one-time or several-time programmable memory with host device for erasable/rewritable memory
CN100565530C (en) A kind of snapshot system and using method thereof
US9104329B2 (en) Mount-time reconciliation of data availability
US11030092B2 (en) Access request processing method and apparatus, and computer system
TWI856880B (en) Non-transitory computer-readable medium, storage device and storage method
CN101136825B (en) Method and system for asynchronous configuration information management of client/server structure
CN101916290B (en) Managing method of internal memory database and device
CN103049224B (en) By the methods, devices and systems of data importing physical tape
US11144299B2 (en) Firmware updating method
US8108356B2 (en) Method for recovering data in a storage system
CN103996412A (en) Power-fail protection method applied to intelligent-card nonvolatile memories
CN105589767B (en) A kind of system power failure for NAND FLASH protects implementation method
WO2020143240A1 (en) Method for quickly recovering data in flash memory database
CN115705153A (en) Conditional update and deferred lookup
CN100454302C (en) A file management system and management method
KR20110046118A (en) Adaptive Logging Device and Method
CN103729301B (en) Data processing method and device
US20060200500A1 (en) Method of efficiently recovering database
CN119248197B (en) Data processing method, device, equipment and medium
CN104778099B (en) A kind of damaged file reconstructing methods of the YAFFS2 based on old version
CN105930520A (en) Cache protection method based on cluster file system
TWI850721B (en) In-memory journal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090121

Termination date: 20151024

EXPY Termination of patent right or utility model