CN101593153A - A kind of method, device and computing machine that data is write non-volatile memory medium - Google Patents

A kind of method, device and computing machine that data is write non-volatile memory medium Download PDF

Info

Publication number
CN101593153A
CN101593153A CNA2009100866732A CN200910086673A CN101593153A CN 101593153 A CN101593153 A CN 101593153A CN A2009100866732 A CNA2009100866732 A CN A2009100866732A CN 200910086673 A CN200910086673 A CN 200910086673A CN 101593153 A CN101593153 A CN 101593153A
Authority
CN
China
Prior art keywords
data
sign
module
write
backup
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.)
Granted
Application number
CNA2009100866732A
Other languages
Chinese (zh)
Other versions
CN101593153B (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.)
Xuzhou Yongjia Hydraulic Equipment Co., Ltd.
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 CN2009100866732A priority Critical patent/CN101593153B/en
Publication of CN101593153A publication Critical patent/CN101593153A/en
Application granted granted Critical
Publication of CN101593153B publication Critical patent/CN101593153B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides and a kind of data are write method, device and the computing machine of non-volatile memory medium, method wherein comprises step: data transfer apparatus writes first data; The Backup end sign is write in the data transfer apparatus setting; Data transfer apparatus writes second data that have default mapping relations with first data according to described first data; Data transfer apparatus is provided with activation marker.The present invention is provided with various signs in the overall process of write data, knows promptly by judging these signs whether the data that write are normal, guarantees that the data that newly write only could be accessed after correctly writing.If the data that write make a mistake or ablation process is interrupted, then can utilize sign to judge is that mistake has appearred in which link of writing process, thereby carry out wrong reparation or visit data from correct position, guarantee that accessed data remain available new data or available old data, the unavailable this situation of data can not occur.

Description

A kind of method, device and computing machine that data is write non-volatile memory medium
Technical field
The present invention relates to field of data storage, relate in particular to a kind of method and device that data is write non-volatile memory medium.
Background technology
At present, write memory module in real time, for example, the classic method of writing non-volatile memory medium is that data are write direct.But new data can directly override old data under certain conditions, perhaps, if when abnormal conditions such as cutting off the power supply, resetting in ablation process, then can cause the data that newly write imperfect, and the while, old data were also destroyed.Above problem is especially outstanding in hard disk operation.
Summary of the invention
In order to solve the disabled problem of data that when in the process of non-volatile memory medium write data, abnormal conditions taking place, causes at present, the invention provides and a kind of data are write the method for non-volatile memory medium, comprise step:
Data transfer apparatus writes first data;
After writing described first ED, the Backup end sign is write in described data transfer apparatus setting, so that described first data can be accessed;
Described data transfer apparatus writes second data that have default mapping relations with described first data according to described first data;
After writing second ED, described data transfer apparatus is provided with activation marker, so that described second data can be accessed.
The step that described data transfer apparatus writes first data also comprises step before:
Data transfer apparatus is provided with the sign that control data is write indegree;
Described data transfer apparatus is write the sign of indegree when effective at described control data, writes described first data.
Described data transfer apparatus is provided with control data and writes the step of the sign of indegree and specifically comprise:
The sign that described control data is write indegree is specially: the N time upgrading sign;
Described data transfer apparatus judges whether the N time upgrading sign be effective, if invalid, N=1 is set then, carries out the step that writes described first data then; If effectively, whether then judge N less than first threshold, if not, uploaded state then, if, N=N+1 then is set, carry out the step that writes described first data then.
The step of said write first data and described setting are write and are also comprised step between the step of Backup end sign:
Described data transfer apparatus is provided with the sign of control backup verification number of times;
Described data transfer apparatus is provided with and writes the Backup end sign when the sign of described control backup verification number of times is effective.
The step that described data transfer apparatus is provided with the sign of control backup verification number of times is specially:
The sign of described control backup verification number of times is specially: the N time backup check mark;
Described data transfer apparatus judges whether the N time backup check mark be effective, if invalid, N=1 is set then, then described first data of verification; If effectively, whether then judge N less than second threshold value, if not, uploaded state then is if then be provided with N=N+1, then described first data of verification; If verification is errorless, then be provided with and write the Backup end sign, if verification is wrong, uploaded state then.
Also comprise step before the step of said write second data:
Data transfer apparatus is provided with the sign that control data writes back number of times;
Described data transfer apparatus writes back the sign of number of times when effective at described control data, writes described second data.
Describedly the step that control data writes back the sign of number of times be set be specially:
The sign that described control data writes back number of times is specially: the N secondary data writes back sign;
Described data transfer apparatus judges whether the N secondary data writes back sign effective, if invalid, N=1 is set then; If effectively, whether then judge N less than the 3rd threshold value, if not, uploaded state then, if, N=N+1 then is set, carry out the step that writes described second data then.
Also comprise step after the step of said write second data:
Judge whether described second data are correct, if incorrect, then if uploaded state correct, then is provided with described activation marker.
The present invention also provides a kind of data transfer apparatus, comprising:
First writing module is used for writing first data to backup module;
Write the Backup end sign module be set, be used to write described first ED after, write the Backup end sign in the Sign module setting, so that described first data can be accessed;
Second writing module is used for according to described first data, writes second data that have default mapping relations with described first data to operational module;
Activation marker is provided with module, be used to write described second ED after, at described Sign module activation marker is set, so that described second data can be accessed;
The base address of described operational module is positioned at described Sign module;
Described backup module is positioned at backup space; Described operational module is positioned at work space; Described Sign module is positioned at the sign space; Separate between described backup space, work space and the sign space.
The base address of described operational module is positioned at the current pointer district of described Sign module for searching sign, and after described second data write described operational module, described data transfer apparatus utilized the base address of described operational module can find described second data.
Described data transfer apparatus also comprises: control data is write the indegree sign module is set, and control backup verification number of times sign is provided with module and control data and writes back the number of times sign module is set;
Described control data is write the indegree sign module is set, and is used to be provided with the sign that control data is write indegree;
Described first writing module is write the sign of indegree when effective at described control data, writes described first data;
Described control backup verification number of times sign is provided with module, is used for after writing described first data, and the sign of control backup verification number of times is set;
The described Backup end sign of writing is provided with module when the sign of described control backup verification number of times is effective, is provided with and writes the Backup end sign;
Described control data writes back the number of times sign module is set, and is used to be provided with the sign that control data writes back number of times;
Described second writing module writes back the sign of number of times when effective at described control data, writes described second data.
The present invention also provides a kind of computing machine, comprising:
First writing module is used for writing first data to backup module;
Write the Backup end sign module be set, be used to write described first ED after, write the Backup end sign in the Sign module setting, so that described first data can be accessed;
Second writing module is used for according to described first data, writes second data that have default mapping relations with described first data to operational module;
Activation marker is provided with module, be used to write described second ED after, at described Sign module activation marker is set, so that described second data can be accessed;
The base address of described operational module is positioned at described Sign module;
Described backup module is positioned at backup space; Described operational module is positioned at work space; Described Sign module is positioned at the sign space; Separate between described backup space, work space and the sign space.
The base address of described operational module is positioned at the current pointer district of described Sign module for searching sign, and after described second data write described operational module, described data transfer apparatus utilized the base address of described operational module can find described second data.
Described data transfer apparatus also comprises: control data is write the indegree sign module is set, and control backup verification number of times sign is provided with module and control data and writes back the number of times sign module is set;
Described control data is write the indegree sign module is set, and is used to be provided with the sign that control data is write indegree;
Described first writing module is write the sign of indegree when effective at described control data, writes described first data;
Described control backup verification number of times sign is provided with module, is used to be provided with the sign of control backup verification number of times;
The described Backup end sign of writing is provided with module when the sign of described control backup verification number of times is effective, is provided with and writes the Backup end sign;
Described control data writes back the number of times sign module is set, and is used to be provided with the sign that control data writes back number of times;
Described second writing module writes back the sign of number of times when effective at described control data, writes described second data.
Compared with prior art, the present invention has following beneficial effect:
The present invention is provided with various signs in the overall process of write data, makes the overall process of write data stay abundant information, knows promptly by judging these signs whether the data that write are normal, guarantees that the data that newly write only could be accessed after correctly writing.If the data that write make a mistake or ablation process is interrupted (as cutting off the power supply, reset etc.), then can utilize sign to judge is that mistake has appearred in which link of writing process, thereby carry out wrong reparation or visit data from correct position, guarantee that accessed data remain available new data or available old data, the unavailable this situation of data can not occur.
Description of drawings
Fig. 1 is a data transfer apparatus structural representation of the present invention;
Fig. 2 is a method for writing data process flow diagram of the present invention;
Fig. 3 is in the method for writing data of the present invention, to the best implementation process process flow diagram of backup module write data;
Fig. 4 is in the method for writing data of the present invention, to the best implementation process process flow diagram of operational module write data.
Embodiment
The present invention a kind ofly writes the method that in non-volatile memory modules (as non-volatile memory devices such as nonvolatile semiconductor memory members such as Nor Flash, NandFlash and hard disk, CF card, the SD cards) process ablation process is provided with tracking mark in data in real time; utilize these signs can reach the purpose of data protection and can be available immediately after data write verification, do not block the operation of other programs.
Non-volatile memory modules mentioned in this article is meant memory device or the equipment that data are not lost under power-down conditions, or certain nonvolatile storage of certain zone of nonvolatile semiconductor memory member or non-volatile memory device.
The present invention is applicable to: program upgrade; Transform the controller of non-volatile memory devices such as hard disk, CF card; Transform the file system of operating system.
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described in further detail.
With reference to figure 1, Fig. 1 is a data transfer apparatus structural representation of the present invention, and data transfer apparatus writes in the process of data to non-volatile memory medium, can relate to operational module, backup module and Sign module and write corresponding data.Data transfer apparatus of the present invention comprises: first writing module, and write the Backup end sign module is set, second writing module, activation marker is provided with module.
First writing module is used for writing first data to backup module.
Write the Backup end sign module be set, be used to write first ED after, write the Backup end sign in the Sign module setting.
Second writing module is used for according to first data, writes second data that have default mapping relations with first data to operational module.
Activation marker is provided with module, be used to write second ED after, at Sign module activation marker is set.
More than sign all is stored in the Sign module, and first data storage is in backup module, and second data storage is in operational module.
In order further to guarantee to write the accuracy of data, and also can write data accurately under abnormal conditions such as occur cutting off the power supply, reset, data transfer apparatus of the present invention also comprises:
Control data is write the indegree sign module is set, and control backup verification number of times sign is provided with module and control data and writes back the number of times sign module is set;
Control data is write the indegree sign module is set, and is used to be provided with the sign that control data is write indegree;
First writing module is write the sign of indegree when effective at control data, writes described first data;
Control backup verification number of times sign is provided with module, is used to be provided with the sign of control backup verification number of times;
Write the Backup end sign and module is set when the sign of control backup verification number of times is effective, be provided with and write the Backup end sign;
Control data writes back the number of times sign module is set, and is used to be provided with the sign that control data writes back number of times;
Second writing module writes back the sign of number of times when effective at control data, writes described second data.
Below operational module, backup module, Sign module and data transfer apparatus are elaborated.
The non-volatile memory modules that is about to be written into data is called operational module.The medium of operational module is a non-volatile memory medium, whole write the complete end of process after, these module collections of storing the data that newly write are operational module.
The base address of operational module is one and searches sign that in case the process of writing finishes, data transfer apparatus can utilize this sign to obtain writing the data of operational module.
Can be called data transfer apparatus to the module that the data in the operational module are carried out reading and writing, analysis, it can be CPU, DSP (Digital Signal Processor, digital signal processor) etc. or the set that is made of CPU, DSP.
In order to protect the data of operational module, need backup module and Sign module.The medium of backup module and Sign module is a non-volatile memory medium, can be only occurs in data transfer apparatus writes data the process of operational module.After the process of writing finished, backup module and Sign module can disappear, and, do not influence the read-write operation of data transfer apparatus after the disappearance to operational module.
The base address of backup module also is one and searches sign that in writing process, data transfer apparatus can utilize this sign to obtain writing the data of backup module.
Filename can be used as the base address of operational module, also can do work module base address with other signs, so in order to make the understandable filename that selects of example.
The capacity of backup module can be adjusted as required flexibly.After data write backup module, data in the backup module have fixing mapping relations with the data that finally write operational module, this mapping relations can be that both are in full accord, also can be certain unalterable rules, promptly can obtain the data of operational module by the data in the backup module according to rule.
In order to follow the trail of the overall process of whole write data, various signs need be set, the non-volatile memory modules of depositing these signs is exactly a Sign module.In Sign module, the zone of depositing the operational module base address is the current pointer district, and the zone of depositing the backup module base address is upgrading pointer district.
The storage medium of operational module, backup module, Sign module can be identical also can be different.Backup module, Sign module can dynamic assignment, and promptly backup module, Sign module can produce in the incipient stage of write data, can when finishing, the complete process of writing disappear, and also dynamic assignment not, this does not influence enforcement of the present invention.
How operational module, backup module, Sign module distribute is a key, introduces work space, backup space, these 3 notions of sign space earlier.In data are write direct the operational module process, in case take place unusual, as cutting off the power supply, reset etc., the data transfer apparatus correct data in the operational module of can't reading back then, not only can't be from the operational module readback data, under certain conditions in addition the data outside a few thing module also influenced.Such as, to the hard disk written document time, if outage occurs in the change file allocation table stage, the file that has not only just write so can't read, and alternative document not can read yet.Said work space is meant directly writing operational module and takes place when unusual among the present invention, and this unusual scope that involves is referred to as work space.The data of being stored in this involves scope can't correctly be read and write by data transfer apparatus.
In like manner, backup space is after having specified backup module, directly writes backup module the scope that involved when unusual takes place, and the data of being stored in this scope can't correctly be read and write by data transfer apparatus.
The sign space is after having specified Sign module, directly writes Sign module the scope that involved when unusual takes place, and the data of being stored in this scope can't correctly be read and write by data transfer apparatus.
Operational module, backup module and Sign module satisfy following rule:
1. operational module is arranged in work space.
2. backup module is arranged in backup space.
3. Sign module is arranged in the sign space.
4. work space, backup space, these three spaces, sign space are independent mutually, can not interact.
The present invention has become traditional process of writing direct to operational module once the process of writing of backup module added once the process of writing of operational module has been added the process of repeatedly writing to Sign module, so Sign module also will satisfy a characteristic, that is:
5. Biao Zhi the failure of once writing does not damage other signs, and other signs still can correctly be read and write by data transfer apparatus.
Be that example is briefly set forth this distribution rule to write hard disk below.
To hard disk written document test.bin, can relate to and write DBR, FAT1, FAT2, file directory, the data field, the memory module that the involved all quilts of these 5 links are write can be counted as a set, and this set is exactly an operational module.In above any one link the outage possibility can take place all, if outage can cause hard disk to visit when writing FAT, then hard disk promptly is a work space.In this case, if the sign space distribution of depositing the backup space of backup module or depositing Sign module on hard disk, has then been violated rule 4: work space, backup space, these three spaces, sign space are independent mutually, can not interact.
Can plug the USB dish of a capacity suitable according to the size of file, in writing process, the set of the memory module of being write on the USB dish is exactly a backup module, and USB is exactly a backup space, writing fixed disk file test.bin failure can not influence the USB dish, and the backup module content still can normally be visited.And then according to the distribution of operational module and backup module, the distributing position of decision Sign module will satisfy 5 rules above-mentioned.
The distribution mode of operational module, backup module and the Sign module of mentioning except above embodiment, can also adopt operational module is arranged in the hard disk, backup module is arranged on the USB dish, Sign module is arranged on another USB dish, perhaps, operational module is arranged on the USB dish, backup module is arranged on the storage area on another USB dish, Sign module is arranged on other distribution mode such as another storage area on another USB dish, as long as above-mentioned 5 principles are satisfied in its distribution.
Specify the method that sign is set in data writing process in order to realize the data protection purpose below.
With reference to figure 2, Fig. 2 is a method for writing data process flow diagram of the present invention, comprises step:
Data transfer apparatus writes first data;
After writing first ED, the Backup end sign is write in the data transfer apparatus setting;
Data transfer apparatus writes second data that have default mapping relations with first data according to first data;
After writing second ED, data transfer apparatus is provided with activation marker.
For when abnormal conditions such as outage occurring, control the number of times of the failure of the data that write backup module, before the step that writes first data, also comprise step:
Data transfer apparatus is provided with the sign that control data is write indegree.
Because may cut off the power supply when writing, cause having write many times inferior outage.Number of times for control data writes is provided with " the N time upgrading sign ".Having had this sign just to know had write several times.
Write the sign of indegree when effective at control data, data transfer apparatus writes first data, and in the present embodiment, the sign that control data is write indegree is specially: the N time upgrading sign.Idiographic flow is with reference to shown in Figure 3.When operational module writes new data, to prepare backup module and Sign module when needs, guarantee that they are available.Specifically comprise step:
Step 101 writes the current pointer district of Sign module with the operational module base address, and the data of guaranteeing to deposit in the current pointer district are right values.
Step 102 reads from Sign module and judges whether " the N time upgrading sign " effective, if invalid, then puts N=1 at Sign module, i.e. and " the 1st upgrading sign ", execution in step 105 then; If then execution in step 103 effectively;
Step 103, whether the N that judges the N time upgrading sign less than threshold value m1, if not, uploaded state then is if then execution in step 104.
Step 104 is inserted Sign module with N=N+1.
Step 105 writes backup module with first data.
Correctness for the data that guarantee to write, can be further after the step of having write first data, the sign of control backup verification number of times is set, the data that write in the backup module are carried out verification, and the sign of the control backup verification number of times in the present embodiment is specially: the N time backup check mark.Further specify below and write the concrete steps of carrying out verification after the data.
Step 106 reads from Sign module and judges whether " the N time backup check mark " effective, if invalid, then puts N=1 at Sign module, i.e. and " the 1st backup check mark ", execution in step 109 then; If then execution in step 107 effectively;
The effect of " the N time backup check mark " is a control verification number of times.Can know that by this sign verification is after several times when outage or verification are unsuccessful when verification.
Whether step 107 judges the N time N of backup in the check mark less than threshold value m2, if not, uploaded state then is if then execution in step 108.
Step 108 is inserted Sign module with N=N+1.
Step 109, first data content of verification backup module, and judge whether content is errorless, if wrong, uploaded state then; If content is errorless, then execution in step 110;
Step 110 is Sign module mid-" writing the Backup end sign ".According to this sign, just can visit the data that write backup module.
Write operation to operational module did not also take place in said process, and the deposit data that newly writes is in backup module.At this moment data transfer apparatus can adopt the data that newly write.If can strengthen the complexity of data management but new data is retained in the backup module, especially after repeatedly writing data, the data management meeting becomes increasingly complex.In order to make data management easier, operation below must continuing writes operational module with the data that newly write backup module again by the predetermined mapped rule.
Before writing the step of second data to operational module, for when abnormal conditions such as outage occurring, control the number of times of the failure of the data that write back operational module, before the step that writes second data, also comprise step:
Data transfer apparatus is provided with the sign that control data writes back number of times;
Write back the sign of number of times when effective at control data, data transfer apparatus writes second data.In the present embodiment, the sign that control data writes back number of times is specially: the N secondary data writes back sign.Idiographic flow may further comprise the steps with reference to shown in Figure 4:
Step 113 reads from Sign module and judges whether " the N secondary data writes back sign " effective, if should sign invalid, then puts N=1 at Sign module, that is, " the 1st secondary data writes back sign ", execution in step 116 then; If should indicate effectively then execution in step 114;
The effect of " the N secondary data writes back sign " is that the number of times of operational module is write in control, so that the data that write operational module are reasonably controlled.
Step 114 judges that whether the N secondary data writes back N in the sign less than threshold value m3, if not, uploaded state then is if then execution in step 115;
Step 115 is inserted Sign module with N=N+1.
Step 116 writes back to operational module with the data map of backup module.
Step 117 is put " operational module activation " sign at Sign module.According to this sign, just can visit the data that write back operational module.
After the data with backup module of step 116 write back to operational module, for the correctness that guarantees to write, further execution in step 1161, carry out the verification of data, after verification was errorless, the data that newly write correctly write operational module, execution in step 117.
All right execution in step 118 after step 117, backup module and Sign module is discarded.Arrive this, the complete process of writing finishes.
If there are new data to write operational module, can redistribute backup module and Sign module, carry out writing of data then according to the method described above.
Come specific description how sign is set in writing the process of data with an embodiment below.
If file test.bin will be write hard disk, can articulate a USB dish earlier, test.bin to be made compressed file test.zip deposit in the USB dish, the process that writes file on the USB dish is carried out according to step 101 mentioned above~110.If writing the errorless back of the data verification CPU of USB dish thinks the test.bin of access hard disk then can coil from USB obtain correct data, when being in a hurry, CPU again the test.zip on the USB dish is not launched, write in the hard disk, the process that writes hard disk is carried out according to step 113 mentioned above~117.If at this moment CPU thinks that the test.bin of access hard disk just can directly visit from hard disk.Whole process writes down tracking by various signs, and sign can be placed in the another one USB dish that is inserted on the computing machine.The storage space here is meant directly writing storage area this unusual scope that involves takes place when unusual.After test.bin correctly deposits on the hard disk, storage mark USB dish and the USB dish of storage test.zip can be pulled out.。
The file that operational module and backup module are deposited is inequality, is to be mapping relations between the two in order to show.Both unanimities also are fine in fact.
Above mentioned sign has following characteristics:
1, sign produces in order according to time order and function, their corresponding in time different links of writing process.
2, leave in the Sign module independently of one another.
If 3, sign damages, each can be damaged one.
In a word, if occur unusual when writing Sign module, as outage, reset or the data write not right, then be bound on sign, reflect, that is to say that the sign that occurs obtaining under the unusual situation does not conform to predetermined sign, it is unusual to show that then this indicates that pairing operation link occurs, as long as this operation link is re-executed one time, then the sign of Sun Huaiing can be resumed.
If appear at the backup module stage of writing unusually, then can determine does not also have the write operation of generation at operational module this moment, so the old data that operational module is stored are still available.
If appear at the operational module stage of writing unusually, can determine that then new data has been kept in the backup module, data transfer apparatus can be taken new data from backup module.
This shows no matter write to appear at unusually and write the Sign module link and still write the backup module link and still write the operational module link, data transfer apparatus can obtain data available.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (14)

1. one kind writes the method for non-volatile memory medium with data, it is characterized in that, comprises step:
Data transfer apparatus writes first data;
After writing described first ED, the Backup end sign is write in described data transfer apparatus setting, so that described first data can be accessed;
Described data transfer apparatus writes second data that have default mapping relations with described first data according to described first data;
After writing second ED, described data transfer apparatus is provided with activation marker, so that described second data can be accessed.
2. the method for claim 1 is characterized in that, the step that described data transfer apparatus writes first data also comprises step before:
Data transfer apparatus is provided with the sign that control data is write indegree;
Described data transfer apparatus is write the sign of indegree when effective at described control data, writes described first data.
3. method as claimed in claim 2 is characterized in that, described data transfer apparatus is provided with control data and writes the step of the sign of indegree and specifically comprise:
The sign that described control data is write indegree is specially: the N time upgrading sign;
Described data transfer apparatus judges whether the N time upgrading sign be effective, if invalid, N=1 is set then, carries out the step that writes described first data then; If effectively, whether then judge N less than first threshold, if not, uploaded state then, if, N=N+1 then is set, carry out the step that writes described first data then.
4. the method for claim 1 is characterized in that, the step of said write first data and described setting are write and also comprised step between the step of Backup end sign:
Described data transfer apparatus is provided with the sign of control backup verification number of times;
Described data transfer apparatus is provided with and writes the Backup end sign when the sign of described control backup verification number of times is effective.
5. method as claimed in claim 4 is characterized in that, the step that described data transfer apparatus is provided with the sign of control backup verification number of times is specially:
The sign of described control backup verification number of times is specially: the N time backup check mark;
Described data transfer apparatus judges whether the N time backup check mark be effective, if invalid, N=1 is set then, then described first data of verification; If effectively, whether then judge N less than second threshold value, if not, uploaded state then is if then be provided with N=N+1, then described first data of verification; If verification is errorless, then be provided with and write the Backup end sign, if verification is wrong, uploaded state then.
6. the method for claim 1 is characterized in that, also comprises step before the step of said write second data:
Data transfer apparatus is provided with the sign that control data writes back number of times;
Described data transfer apparatus writes back the sign of number of times when effective at described control data, writes described second data.
7. method as claimed in claim 6 is characterized in that, describedly the step that control data writes back the sign of number of times is set is specially:
The sign that described control data writes back number of times is specially: the N secondary data writes back sign;
Described data transfer apparatus judges whether the N secondary data writes back sign effective, if invalid, N=1 is set then, carries out the step that writes described second data then; If effectively, whether then judge N less than the 3rd threshold value, if not, uploaded state then, if, N=N+1 then is set, carry out the step that writes described second data then.
8. the method for claim 1 is characterized in that, also comprises step after the step of said write second data:
Judge whether described second data are correct, if incorrect, then if uploaded state correct, then is provided with described activation marker.
9. a data transfer apparatus is characterized in that, comprising:
First writing module is used for writing first data to backup module;
Write the Backup end sign module be set, be used to write described first ED after, write the Backup end sign in the Sign module setting, so that described first data can be accessed;
Second writing module is used for according to described first data, writes second data that have default mapping relations with described first data to operational module;
Activation marker is provided with module, be used to write described second ED after, at described Sign module activation marker is set, so that described second data can be accessed;
The base address of described operational module is positioned at described Sign module;
Described backup module is positioned at backup space; Described operational module is positioned at work space; Described Sign module is positioned at the sign space; Separate between described backup space, work space and the sign space.
10. data transfer apparatus as claimed in claim 9, it is characterized in that, the base address of described operational module is for searching sign, be positioned at the current pointer district of described Sign module, after described second data write described operational module, described data transfer apparatus utilized the base address of described operational module can find described second data.
11. data transfer apparatus as claimed in claim 9 is characterized in that, described data transfer apparatus also comprises: control data is write the indegree sign module is set, and control backup verification number of times sign is provided with module and control data and writes back the number of times sign module is set;
Described control data is write the indegree sign module is set, and is used to be provided with the sign that control data is write indegree;
Described first writing module is write the sign of indegree when effective at described control data, writes described first data;
Described control backup verification number of times sign is provided with module, is used for after writing described first data, and the sign of control backup verification number of times is set;
The described Backup end sign of writing is provided with module when the sign of described control backup verification number of times is effective, is provided with and writes the Backup end sign;
Described control data writes back the number of times sign module is set, and is used to be provided with the sign that control data writes back number of times;
Described second writing module writes back the sign of number of times when effective at described control data, writes described second data.
12. a computing machine is characterized in that, comprising:
First writing module is used for writing first data to backup module;
Write the Backup end sign module be set, be used to write described first ED after, write the Backup end sign in the Sign module setting, so that described first data can be accessed;
Second writing module is used for according to described first data, writes second data that have default mapping relations with described first data to operational module;
Activation marker is provided with module, be used to write described second ED after, at described Sign module activation marker is set, so that described second data can be accessed;
The base address of described operational module is positioned at described Sign module;
Described backup module is positioned at backup space; Described operational module is positioned at work space; Described Sign module is positioned at the sign space; Separate between described backup space, work space and the sign space.
13. computing machine as claimed in claim 12, it is characterized in that, the base address of described operational module is for searching sign, be positioned at the current pointer district of described Sign module, after described second data write described operational module, described data transfer apparatus utilized the base address of described operational module can find described second data.
14. computing machine as claimed in claim 12 is characterized in that, described data transfer apparatus also comprises: control data is write the indegree sign module is set, and control backup verification number of times sign is provided with module and control data and writes back the number of times sign module is set;
Described control data is write the indegree sign module is set, and is used to be provided with the sign that control data is write indegree;
Described first writing module is write the sign of indegree when effective at described control data, writes described first data;
Described control backup verification number of times sign is provided with module, is used to be provided with the sign of control backup verification number of times;
The described Backup end sign of writing is provided with module when the sign of described control backup verification number of times is effective, is provided with and writes the Backup end sign;
Described control data writes back the number of times sign module is set, and is used to be provided with the sign that control data writes back number of times;
Described second writing module writes back the sign of number of times when effective at described control data, writes described second data.
CN2009100866732A 2009-06-17 2009-06-17 Method, device and computer for writing data into nonvolatile storage medium Expired - Fee Related CN101593153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100866732A CN101593153B (en) 2009-06-17 2009-06-17 Method, device and computer for writing data into nonvolatile storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100866732A CN101593153B (en) 2009-06-17 2009-06-17 Method, device and computer for writing data into nonvolatile storage medium

Publications (2)

Publication Number Publication Date
CN101593153A true CN101593153A (en) 2009-12-02
CN101593153B CN101593153B (en) 2012-07-04

Family

ID=41407819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100866732A Expired - Fee Related CN101593153B (en) 2009-06-17 2009-06-17 Method, device and computer for writing data into nonvolatile storage medium

Country Status (1)

Country Link
CN (1) CN101593153B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819532A (en) * 2010-03-16 2010-09-01 北京握奇数据***有限公司 Method and device for updating data
CN102522119A (en) * 2011-12-14 2012-06-27 广东长虹电子有限公司 Method and digital device for intelligently burning HDCP (High-bandwidth Digital-content Copy Protection) KEY

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5319766A (en) * 1992-04-24 1994-06-07 Digital Equipment Corporation Duplicate tag store for a processor having primary and backup cache memories in a multiprocessor computer system
JP3179345B2 (en) * 1996-08-07 2001-06-25 日本電気株式会社 Memory disk disk copying apparatus and disk copying method
CN1609986A (en) * 2004-11-17 2005-04-27 秦峰 Permanent dynamic holding technique for hard discs
KR100809319B1 (en) * 2006-09-13 2008-03-05 삼성전자주식회사 Apparatus and method for providing atomicity request of multiple sector write in flash memory

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819532A (en) * 2010-03-16 2010-09-01 北京握奇数据***有限公司 Method and device for updating data
CN101819532B (en) * 2010-03-16 2013-04-24 北京握奇数据***有限公司 Method and device for updating data
CN102522119A (en) * 2011-12-14 2012-06-27 广东长虹电子有限公司 Method and digital device for intelligently burning HDCP (High-bandwidth Digital-content Copy Protection) KEY

Also Published As

Publication number Publication date
CN101593153B (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN101558452B (en) Method and device for reconfiguration of reliability data in flash eeprom storage pages
CN102043686B (en) Disaster tolerance method, backup server and system of memory database
US7039754B2 (en) Detachably mounted removable data storage device
JP5002201B2 (en) Memory system
US8909883B2 (en) Storage system and storage control method
TWI394041B (en) Method and device to improve usb flash write performance
CN101313287A (en) Initialization of flash storage via an embedded controller
CN101978357A (en) Data updating method, memory system and memory device
CN102270144A (en) Embedded network equipment and method for upgrading firmware by using same
CN106776106A (en) A kind of date storage method based on NandFlash
CN102096561B (en) Hierarchical data storage processing method, device and storage equipment
US20090172321A1 (en) Storage sub-system for a computer comprising write-once memory devices and write-many memory devices and related method
CN102063943A (en) Nand flash memory parameter automatic detecting system
CN103839591A (en) Automatic fault detection and fault-tolerant circuit of memory as well as control method
CN101763309A (en) Nonvolatile storage device, information recording system, and information recording method
CN103942151A (en) Data storage method and device for flash memory
CN101482837B (en) Error correction method and apparatus for flash memory file system
CN110096300A (en) A kind of fpga program file backup management system, operation method and upgrade method
CN107122130A (en) A kind of data delete method and device again
CN109783011A (en) It stores equipment and stores the recovery method of equipment
CN101403972A (en) Memory card guiding method and device of embedded system
CN110765032A (en) Method for reading and writing I2C memory based on system management bus interface
CN102541969A (en) File protection method and system based on file allocation table (FAT) file system, and memory
CN113568788B (en) Snapshot method, system and storage medium for Linux non-logical volume block device
CN101593153B (en) Method, device and computer for writing data into nonvolatile storage medium

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
TR01 Transfer of patent right

Effective date of registration: 20180103

Address after: 221000 Jiangsu province Xuzhou city Jiawang District Jianping Wu Village South of Hua Jian Lu

Patentee after: Xuzhou Yongjia Hydraulic Equipment Co., Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corporation

Effective date of registration: 20180103

Address after: 221000 Jiangsu province Xuzhou city Jiawang District Jianping Wu Village South of Hua Jian Lu

Patentee after: Xuzhou Yongjia Hydraulic Equipment Co., Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corporation

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120704

Termination date: 20190617

CF01 Termination of patent right due to non-payment of annual fee