CN100454302C - File management system and method - Google Patents
File management system and method Download PDFInfo
- 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
- storage unit
- file
- parameter storage
- standby
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention discloses a file management system and a method, which comprises a first parameter memory cell, a second parameter memory cell, a file memory cell, a read operation cell, a write operation cell, a switching cell for main standby parameters, and a judging cell for main standby parameters. Edition files in an embedded system are adopted double-edition storing and switching mechanisms, and the present invention realizes transactional operations, such as read operations, write operations, main standby edition switching, etc. for the files and the renewal of the states thereof, which effectively realizes the reliable operation for the renewal of the edition files and greatly enhances the reliability of the system to prevent the editions from probable damage in the maintenance of the edition files; simultaneously, the present invention is convenient for users of the files by shielding the complexity realized in the file system. The present invention can improve the reliability of the embedded system and reduce the maintenance costs of the products, and thereby, the market competitiveness of the products is enhanced.
Description
Technical field
The present invention relates to the art file management technology field, relate in particular to a kind of file management system and management method.
Background technology
At present, increasing embedded device occurred in people's life, these equipment are the computer system of embedded processor often, and communication system is the representative of this respect.What present communication system was just becoming becomes increasingly complex, and a system often is made up of the node with processing power of One's name is legion, and these nodes often are exactly an Embedded computer system.And communication system is the system very high to reliability requirement, has also proposed very high requirement for the management of the version file of each processing node in the communication system.
Because it is the software release upgrade requirement of purpose that the complicacy of communication system itself, communication system exist to correct software defect; The expansion of communication system function is such as supporting new business function by software upgrading, the objective upgrading that also needs version.Release maintenance is an important content of communication system Operation and Maintenance.Complicacy (possible maloperation) of software itself, and the generation of some abnormal conditions (as the cutting off the power supply) destruction that all may cause version.In case version damages, system can not normally start, and can increase maintenance cost greatly on the one hand, on the other hand as the supplier of commercial product, also can cause harmful effect to the prestige and the after market chance of provider.
Thereby, in the face of complexity is the embedded system of representative with the communication system, need provide on the one hand a kind of version file management system to realize convenient management, need to provide a kind of means of necessity to guarantee the security of version file operation simultaneously again numerous software versions.
Summary of the invention
Technical matters to be solved by this invention is, a kind of file management system and management method are provided, version file management system in the embedded system is carried out particular design, the security mechanism of file operation is provided, guaranteed the security and the high reliability of version file operation; Shield the complicacy that security mechanism realizes simultaneously, to make things convenient for the use of upper layer application.
The invention provides a kind of file management system, be used for the version file of embedded system is carried out safety management, described system comprises:
First parameter storage unit is used to store the parameter information of described version file, comprises parameter storage unit effective marker and sequence number, and title of each file, the active and standby sign of A version, A version position, the active and standby sign of B version, B version position etc.;
Second parameter storage unit, be used for described first parameter storage unit active and standby each other, store the parameter information of described version file, comprise parameter storage unit effective marker and sequence number, and title of each file, the active and standby sign of A version, A version position, the active and standby sign of B version, B version position etc.;
File storage unit is used for the file parameters according to described first or second parameter storage unit record, stores described version file, and wherein, each file all has A version and B version, stores respectively according to location parameter.
Described first and second parameter storage unit further comprises A version effective marker and B version effective marker.
Described file management system further comprises:
Active and standby parameter judging unit is used for unit effective marker and sequence number information according to described first and second parameter storage unit record, judges main with parameter storage unit and standby parameter storage unit in described first and second parameter storage unit.
Described file management system further comprises:
Active and standby parameter switch unit, be used for using and standby parameter storage unit according to the master that described active and standby parameter judgment unit judges goes out, read the current main data mapping of parameter storage unit of using to internal memory, to switch with active and standby sign of A version and the active and standby sign of B version in the corresponding file parameters information of the filename that provides by upper layer application, this master is made as effectively with the unit effective marker of parameter storage unit record, sequence number is increased progressively, and amended current main map data with parameter storage unit write current standby parameter storage unit, to replace former data.
Described file management system further comprises:
The read operation unit, be used for the filename that basis is provided by upper layer application, use in the parameter storage unit, search the A version of this document and the activestandby state of B version at the main of described active and standby parameter judgment unit judges, determine that current master uses version and position thereof, and read main file data in view of the above with version.
Described file management system further comprises:
Write operation unit, be used for the filename that basis is provided by upper layer application, use in the parameter storage unit at the main of described active and standby parameter judgment unit judges, search the A version of this document and the activestandby state of B version, determine current standby version and position thereof, and write new file data in this position to replace legacy data, utilize described active and standby parameter switch unit to switch activestandby state again.
Described active and standby parameter judging unit comprises:
Unit effective marker judging unit is used to compare the unit effective marker of first and second parameter storage unit record, if having only one effectively, then effectively parameter storage unit is main usefulness, and another is standby;
The sequence number judging unit when unit effective marker that is used for writing down in described first and second parameter storage unit all is effective, is further compared the size of described sequence number, and big is main usefulness, and little is standby.
The present invention further provides and a kind ofly utilize described file management system, be used for file is carried out read operation, it is characterized in that, comprise the steps: the method that the version file in the embedded system manages
In first and second parameter storage unit, select the main parameter storage unit of using;
According to the filename that provides by upper layer application, at the described main parameter information that finds respective file in parameter storage unit;
According to the A version of the parameter information of described respective file and the activestandby state of B version, determine main with version and memory location thereof;
According to main memory location, read file data to the user buffering district with version.
The main step with parameter storage unit of described selection comprises the steps:
Read the unit effective marker information that writes down in first and second parameter storage unit;
Judge the validity of this unit effective marker information;
If have only one effectively, then effectively parameter storage unit is main using;
If all effective, then further read and compare the sequence number information that writes down in first and second parameter storage unit, what numerical value was big is main using.
The present invention further provides and a kind ofly utilize described file management system, be used for file is carried out write operation, it is characterized in that, comprise the steps: the method that the version file in the embedded system manages
In first and second parameter storage unit, select the main parameter storage unit of using;
According to the filename that provides by upper layer application, at the described main parameter information that finds respective file in parameter storage unit;
According to the A version of the information of described respective file record and the activestandby state of B version, determine standby version and memory location thereof;
Write new version file data in standby storage of versions zone to replace legacy data;
Read the current main data mapping of parameter storage unit of using to internal memory;
To switch with active and standby sign of A version and the active and standby sign of B version in the corresponding file parameters information of the filename that provides by upper layer application;
This master is made as effectively with the unit effective marker of parameter storage unit record, sequence number is increased progressively;
Amended current main map data with parameter storage unit is write current standby parameter storage unit, to replace former data.
The main step with parameter storage unit of described selection comprises the steps:
Read the unit effective marker information that writes down in first and second parameter storage unit;
Judge the validity of this unit effective marker information;
If have only one effectively, then effectively parameter storage unit is main using;
If all effective, then further read and compare the sequence number information that writes down in first and second parameter storage unit, what numerical value was big is main using.
The present invention further provides and a kind ofly utilize described file management system, be used for the active and standby attribute of specified file A, B version is switched, it is characterized in that, comprise the steps: the method that the version file in the embedded system manages
In first and second parameter storage unit, select the main parameter storage unit of using;
Read the current main data mapping of parameter storage unit of using to internal memory;
To switch with active and standby sign of A version and the active and standby sign of B version in the corresponding file parameters information of the filename that provides by upper layer application;
This master is made as effectively with the unit effective marker of parameter storage unit record, sequence number is increased progressively;
Amended current main map data with parameter storage unit is write current standby parameter storage unit, to replace former data.
The main step with parameter storage unit of described selection comprises the steps:
Read the unit effective marker information that writes down in first and second parameter storage unit;
Judge the validity of this unit effective marker information;
If have only one effectively, then effectively parameter storage unit is main using;
If all effective, then further read and compare the sequence number information that writes down in first and second parameter storage unit, what numerical value was big is main using.
The present invention is by carrying out particular design to the file management system in the embedded system, adopt two versions to deposit and Switchover mechanism to version file, under the prerequisite that makes things convenient for upper layer application to use, renewal to file and state thereof has realized the affairs type operation, can effectively realize the operation of version file reliability of updating, the reliability of enhanced system prevents that the version that may occur in the version file maintenance from destroying greatly; Simultaneously, by the inner complicacy that realizes of shielding file system, made things convenient for the user of file.Utilize file management system of the present invention and management method can significantly improve the reliability of embedded system and reduce the maintenance cost of product, thereby improve the competitiveness of product in market.
Description of drawings
Fig. 1 is the storer physical space synoptic diagram of file system in the embodiment of the invention;
Fig. 2 is the file system parameter region structural representation of file system in the embodiment of the invention;
Fig. 3 is the parameter region header information structural representation of file system in the embodiment of the invention;
Fig. 4 is the composition form synoptic diagram of the file logging of file system in the embodiment of the invention.
Embodiment
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
The presents management system is mainly by realizing the affairs type operation of file amendment, comprises that read operation, write operation and active and standby parameter switch, and guarantees the reliable operation of version, prevents that the version that version file may occur in safeguarding from destroying.The presents management system generally is present on FLASH (non-volatile memory device of the electric erasable) storer in the system, but is not limited to the FLASH memory device.
Fig. 1 shows the storer physical space synoptic diagram of file management system of the present invention, wherein said first parameter storage unit is file system parameter region A, described second parameter storage unit is file system parameter region B, and described file storage unit is the file data district.As shown in Figure 1, in the native system physical store is divided into 3 essential parts, first two section is used for depositing file system self-information (file-related information) as the file system parameter region.Two parameter regions one main are equipped with.The 3rd zone be as depositing actual version file data, its use dividing condition main with the systematic parameter district in regulation (by the fileinfo record).
Logically, the presents management system has following characteristics:
The first, be divided into two parts on the file system logic, a part is file system parameter region (being similar to file allocation table), is used to deposit the various information states (file storage location, validity, activestandby state etc.) of file, is designated hereinafter simply as " parameter region "; Another part is the file data district, is used to deposit actual file data.The structure of file system is sightless for upper layer application (user of file), in order to the inner complicacy that realizes of shielding file system, the convenient use.
The second, when the inner realization of file system, set up two memory blocks at single file, during write operation, write memory block, masterslave switchover then fully earlier; Read operation, the main storage area is effective, from the main storage area reading of data; The details of these operations is sightless for upper layer application (user of file), in order to the inner complicacy that realizes of shielding file system, the convenient use.
The 3rd, to upper layer application (user of file), the realization details of file system shielding internal security mechanism.For upper layer application, a file is corresponding to a storage version, and the read-write of file is undertaken by file name, and upper layer application does not know that the inner two versions realized of file system deposit and Switchover mechanism.
The 4th, the file system parameter region is also set up two memory blocks, when carrying out the version file renewal, need the file-related information of change file system parameter region, parameter region is also carried out masterslave switchover, to support affairs type operation to file and file status modification.By switching the mode of operation of file system parameter region, not only guaranteed the operational security of single file, and provide safety protecting mechanism the safety of whole file system.If not adopting Switchover mechanism,, then can cause the destruction of whole file system in case cause the destruction of parameter region.
The 5th, the presents system provides the affairs type that file is rewritten operation, and the base unit of protection is whole file, rather than a part of file.
Physically, there are following characteristics in the presents system:
The first, the presents system is divided into 3 zones with storage area, and preceding 2 zones are file system parameter region A and B, and the relevant information of All Files in the storage system is as deposit position, activestandby state and validity information etc.; It is effective having only the principal parameter district.
Second, when changing file status information, will lead earlier with the parameter region map and read then fileinfo to be changed to internal memory, principal parameter district map after will upgrading again writes standby parameter region, realizes the security update of file data and status information by the active and standby switching of parameter region.
The three, one file adopts a file name sign, for the upper layer application of using file, the FileVersion of correspondence that filename is unique, the internal storage of file is then distributed two storage areas, and active and standby branch is arranged, key plate is originally effective, and what the user read is the main version of using forever
Fig. 2 shows the file system parameter region structure of presents system.The head and a series of fileinfo record that mainly comprise a file system parameter region, the corresponding file of each fileinfo record, and by file name sign and index, file name is unique in the system, and catalog function is not provided.
Wherein, the head of described file system parameter region as shown in Figure 3, it comprises several territories, as shown in Table 1, is used for judging the activestandby state of file system parameter region.The determination methods active and standby to parameter region will illustrate form 1 in subsequent content
The territory | Length | Describe |
Effective marker | 4 | Be used to indicate the validity of this parameter region, constant 0x5555AAAA sign is effective, and other numeric representations are invalid. |
Sequence number | 4 | When each parameter region was switched, this sequence number added 1, was used for preventing differentiating when two parameter regions of appearance are all effective active zone. |
Keep | 8 | Keep, do not use. |
Wherein, the form of described fileinfo record as shown in Figure 4, it comprises some information fields, the implication in each territory sees Table lattice 2, the indication file-related information.
Form 2
The territory | Length (byte) | Describe |
File name | 16 | Be used to indicate the character string of version file |
A version address | 4 | A version deposit position |
A version length | 4 | A deposits in the district version physical length |
A version maximum length | 4 | A version length restriction prevents that institute's written document is excessive, damages alternative document |
A version effective marker | 2 | A version effective marker |
The active and standby sign of A version | 2 | A version activestandby state |
B version address | 4 | B version deposit position |
B version length | 4 | B deposits in the district version physical length |
B version maximum length | 4 | B version length restriction prevents that institute's written document is excessive, damages alternative document |
B version effective marker | 2 | B version effective marker |
The active and standby sign of B version | 2 | B version activestandby state |
Based on above-described file management system, the treatment mechanism of presents system has guaranteed main being perfectly safe with version.When the user reads file, file system will read main delivery of content with version and give the user, and described read operation need be realized by the read operation unit; When the user carries out write operation to file, file system will be carried out write operation at spare memory area, after the write operation success, two storage of versions districts be carried out active and standby switching, and described write operation is realized by write operation unit; In this case, all operations to version file is the transaction operation of atomicity.That is to say that if unsuccessful to the operation of file, file system state will remain on the original state before this operation.
In addition, because in file system inside, each file has active and standby two versions under the normal condition, for satisfying some other tests and safety requirements, the active and standby switching interface of file also is provided, realizes the active and standby active and standby switching with version of file, its switching is realized by active and standby parameter switch unit.
Owing to the active and standby judgement that all operations of file is all related to parameter region, below the active and standby determination methods of parameter region to be set forth, its active and standby judgement is realized by active and standby parameter judging unit.
The method that the parameter region activestandby state is judged is as follows:
Step 1: read two parameter region heads.
Step 2: judge the validity of head effective marker, if having only one effectively, so effectively that is main, and another returns end for being equipped with.
Step 3: if two all effective, we compare the sequence number of parameter region head so, judge the active and standby of parameter region.Big that of sequence number is main, and little that of sequence number is for being equipped with.(effective marker is decided to be constant 0x5555AAAA, and sequence number is initialized as 0 in the first time during file system initialization, and masterslave switchover of later every generation increases by 1).
Specify at read operation, write operation and active and standby parameter switching operation performing step separately below.
First embodiment of the invention is the read operation to file, is realized by the read operation unit.
Below read operation is described, read operation is fairly simple, does not also change file system simultaneously, and the destruction that can not cause file or file system comprises the steps:
Step 101: select the main parameter region of using.
Step 102: the file name that provides according to the file user in the master writes down with the parameter region fileinfo indexes the associated documents record.
Step 103: from the file logging that step 102 finds, find main with information such as storage of versions position, length.
Step 104: read file data to the user buffering district.
Second embodiment of the invention is the write operation to file, is realized by write operation unit.
Below write operation is described, the write operation relative complex a bit, by the affairs type operation that switching of the active and standby storage area of file is realized file writes, and switching of the active and standby storage area of file is that masterslave switchover by the file system parameter region is realized, comprises the steps:
Step 201: obtain two parameter region activestandby states.
Step 202: index associated documents information record in the principal parameter district according to file name.
Step 203: from the fileinfo record that step 202 finds, find standby storage of versions position.
Step 204: if storer is the FLASH device, wipe in the district to standby storage of versions.
Step 205: write the user version file data in standby storage of versions zone.
Step 206:, wipe backup file systematic parameter district if storer is the FLASH device.
Step 207: read the main file system parameter region map of using to internal memory, with the active and standby information setting in original primary area of respective file is to be equipped with, simultaneously with original active and standby information setting that is equipped with district (current file operational zone) for leading and be provided with valid flag for effectively, and parameter region header sequence in the map number added 1.
Step 208: the active and standby switching of file system parameter region (with writing backup file systematic parameter district through the main of change with the parameter region map in the step 207), realized the active and standby switching with version of file this moment.
In this operating process, we carry out in the file for standby memory block the operation of file, if during any problem (such as abnormal power-down) of occurring, the file system parameter region just can not realized active and standby switching so, thereby is not influence for whole file system parameter region and the file former meaningful (being present in the main storage area) operated; If the active and standby of file system successfully switches with parameter region, the renewal process of so whole version file must be (success) of complete execution just.So just realized affairs type operation to the version file change.
Third embodiment of the invention is to the active and standby switching of the file of file, is realized by active and standby parameter switch unit.
Operation describes to the file masterslave switchover below, the masterslave switchover class of operation is like write operation, and just it is just made amendment with the active and standby attribute of the file in the parameter region to the file system master not to the operation of file content, so only relate to the masterslave switchover of file system parameter region, comprise the steps:
Step 301: obtain two parameter region activestandby states.
Step 302: read current main map and arrive internal memory with parameter region.
Step 303: according to file name leading in internal memory with indexing the fileinfo record in the parameter region map.
Step 304: the active and standby of two memory blocks in the fileinfo record that indexes in the step 303 principal parameter district map switched with sign.
Step 305: main sequence number with parameter region core image head increases by 1, and the parameter region effective marker is set for effective.
Step 306:, wipe current standby parameter region if storer is the FLASH device.
Step 307: will write standby parameter region through the master who revises with the parameter region map in the step 305.
Passed through this process, parameter region has carried out masterslave switchover, has obtained modification and switch the main active and standby information with the corresponding document in the parameter region in back, thereby has realized the masterslave switchover of file content, and same, this process also is the operation of affairs type.
The present invention is by a kind of new method, version file management system in the embedded system has been carried out particular design, under the prerequisite that makes things convenient for upper layer application to use, realize the affairs type operation of file amendment, can guarantee the high reliability of file operation, prevent that the version that may occur in the version file maintenance from destroying.Can significantly improve the reliability of embedded system and reduce the maintenance cost of product, thereby improve the competitiveness of product in market.
Claims (13)
1, a kind of file management system is used for the version file of embedded system is carried out safety management, it is characterized in that, comprising:
First parameter storage unit is used to store the parameter information of described version file, comprises unit effective marker and sequence number, and the title of each file, the active and standby sign of A version, A version position, the active and standby sign of B version, B version position;
Second parameter storage unit, be used for described first parameter storage unit active and standby each other, store the parameter information of described version file, comprise unit effective marker and sequence number, and the title of each file, the active and standby sign of A version, A version position, the active and standby sign of B version, B version position;
File storage unit is used for the file parameters according to described first or second parameter storage unit record, stores described version file, and wherein, each file all has A version and B version, stores respectively according to location parameter.
2, the system as claimed in claim 1 is characterized in that, described first and second parameter storage unit further comprises A version effective marker and B version effective marker.
3, the system as claimed in claim 1 is characterized in that, further comprises:
Active and standby parameter judging unit is used for unit effective marker and sequence number information according to described first and second parameter storage unit record, judges main with parameter storage unit and standby parameter storage unit in described first and second parameter storage unit.
4, system as claimed in claim 3 is characterized in that, further comprises:
Active and standby parameter switch unit, be used for using and standby parameter storage unit according to the master that described active and standby parameter judgment unit judges goes out, read the current main data mapping of parameter storage unit of using to internal memory, to switch with active and standby sign of A version and the active and standby sign of B version in the corresponding file parameters information of the filename that provides by upper layer application, this master is made as effectively with the unit effective marker of parameter storage unit record, sequence number is increased progressively, and amended current main map data with parameter storage unit write current standby parameter storage unit, to replace former data.
5, system as claimed in claim 3 is characterized in that, further comprises:
The read operation unit, be used for the filename that basis is provided by upper layer application, use in the parameter storage unit, search the A version of this document and the activestandby state of B version at the main of described active and standby parameter judgment unit judges, determine that current master uses version and position thereof, and read main file data in view of the above with version.
6, system as claimed in claim 4 is characterized in that, further comprises:
Write operation unit, be used for the filename that basis is provided by upper layer application, use in the parameter storage unit at the main of described active and standby parameter judgment unit judges, search the A version of this document and the activestandby state of B version, determine current standby version and position thereof, and write new file data in this position to replace legacy data, utilize described active and standby parameter switch unit to switch activestandby state again.
7, system as claimed in claim 3 is characterized in that, described active and standby parameter judging unit comprises:
Unit effective marker judging unit is used to compare the unit effective marker of first and second parameter storage unit record, if having only one effectively, then effectively parameter storage unit is main usefulness, and another is standby;
The sequence number judging unit when unit effective marker that is used for writing down in described first and second parameter storage unit all is effective, is further compared the size of described sequence number, and big is main usefulness, and little is standby.
8, a kind of the system as claimed in claim 1 of utilizing is used for file is carried out read operation to the method that the version file in the embedded system manages, and it is characterized in that, comprises the steps:
In first and second parameter storage unit, select the main parameter storage unit of using;
According to the filename that provides by upper layer application, at the described main parameter information that finds respective file in parameter storage unit;
According to the A version of the parameter information of described respective file and the activestandby state of B version, determine main with version and memory location thereof;
According to main memory location, read file data to the user buffering district with version.
9, method as claimed in claim 8 is characterized in that, the main step with parameter storage unit of described selection comprises the steps:
Read the unit effective marker information that writes down in first and second parameter storage unit;
Judge the validity of this unit effective marker information;
If have only one effectively, then effectively parameter storage unit is main using;
If all effective, then further read and compare the sequence number information that writes down in first and second parameter storage unit, what numerical value was big is main using.
10, a kind of the system as claimed in claim 1 of utilizing is used for file is carried out write operation to the method that the version file in the embedded system manages, and it is characterized in that, comprises the steps:
In first and second parameter storage unit, select the main parameter storage unit of using;
According to the filename that provides by upper layer application, at the described main parameter information that finds respective file in parameter storage unit;
According to the A version of the parameter information of described respective file and the activestandby state of B version, determine standby version and memory location thereof;
Write new version file data in standby storage of versions zone to replace legacy data;
Read the current main data mapping of parameter storage unit of using to internal memory;
To switch with active and standby sign of A version and the active and standby sign of B version in the corresponding file parameters information of the filename that provides by upper layer application;
This master is made as effectively with the unit effective marker of parameter storage unit record, sequence number is increased progressively;
Amended current main map data with parameter storage unit is write current standby parameter storage unit, to replace former data.
11, method as claimed in claim 10 is characterized in that, the main step with parameter storage unit of described selection comprises the steps:
Read the unit effective marker information that writes down in first and second parameter storage unit;
Judge the validity of this unit effective marker information;
If have only one effectively, then effectively parameter storage unit is main using;
If all effective, then further read and compare the sequence number information that writes down in first and second parameter storage unit, what numerical value was big is main using.
12, a kind of the system as claimed in claim 1 of utilizing is used for the active and standby attribute of specified file A, B version is switched to the method that the version file in the embedded system manages, and it is characterized in that, comprises the steps:
In first and second parameter storage unit, select the main parameter storage unit of using;
Read the current main data mapping of parameter storage unit of using to internal memory;
To switch with active and standby sign of A version and the active and standby sign of B version in the corresponding file parameters information of the filename that provides by upper layer application;
This master is made as effectively with the unit effective marker of parameter storage unit record, sequence number is increased progressively;
Amended current main map data with parameter storage unit is write current standby parameter storage unit, to replace former data.
13, method as claimed in claim 12 is characterized in that, the main step with parameter storage unit of described selection comprises the steps:
Read the unit effective marker information that writes down in first and second parameter storage unit;
Judge the validity of this unit effective marker information;
If have only one effectively, then effectively parameter storage unit is main using;
If all effective, then further read and compare the sequence number information that writes down in first and second parameter storage unit, what numerical value was big is main using.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101143944A CN100454302C (en) | 2005-10-24 | 2005-10-24 | File management system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101143944A CN100454302C (en) | 2005-10-24 | 2005-10-24 | File management system and 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 | File management system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100454302C (en) |
Families Citing this family (8)
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)
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 document 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 |
-
2005
- 2005-10-24 CN CNB2005101143944A patent/CN100454302C/en not_active Expired - Fee Related
Patent Citations (6)
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 document 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 |
---|---|---|
CN100454302C (en) | File management system and method | |
US8028006B2 (en) | Method and apparatus for exchanging sub-hierarchical structures within a hierarchical file system | |
US8024507B2 (en) | Transaction-safe FAT file system improvements | |
CN103577121B (en) | A kind of highly reliable linear file access method based on Nand Flash | |
CN101169751B (en) | System with flash memory device and data recovery method thereof | |
US8156165B2 (en) | Transaction-safe FAT files system | |
EP1739535B1 (en) | File system storing transaction records in flash-like media | |
CN102012852B (en) | Method for implementing incremental snapshots-on-write | |
CN101501623B (en) | Filesystem-aware block storage system, apparatus, and method | |
CN100407336C (en) | Method of data access in nonvolatile storage in embedded system | |
CN105868396A (en) | Multi-version control method of memory file system | |
US20070005614A1 (en) | File system having deferred verification of data integrity | |
JP2007012060A (en) | File system having inverted hierarchical structure | |
JP2007012054A (en) | Startup authentication of optimized file system integrity | |
CN102696010A (en) | Apparatus, system, and method for caching data on a solid-state storage device | |
CN103577574A (en) | High-reliability linear file system based on nand flash | |
CN107656875A (en) | Solid state hard disc as system disk shortens the method and system of power-on time | |
CN102750201A (en) | Computer system and backup method therefor | |
CN103617277A (en) | Method for restoring data table content deleted mistakenly | |
US8108356B2 (en) | Method for recovering data in a storage system | |
CN104516959A (en) | Method and device for managing database logs | |
CN101853275A (en) | Data management method of FAT file system and system | |
CN103617097A (en) | File recovery method and file recovery device | |
CN101763426B (en) | Method and device for realizing reliability of file allocation table file system | |
CN111414320B (en) | Method and system for constructing disk cache based on nonvolatile memory of log file system |
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 |