CN101593153B - Method, device and computer for writing data into nonvolatile storage medium - Google Patents

Method, device and computer for writing data into nonvolatile storage medium Download PDF

Info

Publication number
CN101593153B
CN101593153B CN2009100866732A CN200910086673A CN101593153B CN 101593153 B CN101593153 B CN 101593153B CN 2009100866732 A CN2009100866732 A CN 2009100866732A CN 200910086673 A CN200910086673 A CN 200910086673A CN 101593153 B CN101593153 B CN 101593153B
Authority
CN
China
Prior art keywords
data
sign
module
writes
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.)
Expired - Fee Related
Application number
CN2009100866732A
Other languages
Chinese (zh)
Other versions
CN101593153A (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

Abstract

The invention provides a method, a device and a computer for writing data into a nonvolatile storage medium. The method comprises the following step that: a data writing device writes a first data; the data writing device sets a copy writing end mark; the data writing device writes a second data in a preset mapping relationship with the first data according to the first data; and the data writing device sets an activation mark. In the method, various marks are set in the whole process of data writing, and whether the written data is normal can be known by judging the marks so as to ensure that newly written data can be accessed only when written correctly. If the written data have an error or the writing process is interrupted, the marks can be used to determine step in which the error occurs in the writing process so as to correct the error or access the data from a correct position and ensure that the accessed data is still usable new data or old data and that data unavailability is avoided.

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, and perhaps, if when abnormal conditions such as in ablation process, cutting off the power supply, resetting, the data that then can cause newly writing are imperfect, and the while, old data also were 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 said first ED, the Backup end sign is write in said data transfer apparatus setting, so that said first data can be visited;
Said data transfer apparatus writes second data that have preset mapping relations with said first data according to said first data;
After writing second ED, said data transfer apparatus is provided with activation marker, so that said second data can be visited;
Wherein, said data transfer apparatus writes and also comprises step before the step of first data:
Data transfer apparatus is provided with the sign that control data is write indegree;
Said data transfer apparatus is write the sign of indegree when effective at said control data, writes said first data.
Said data transfer apparatus is provided with control data and writes the step of the sign of indegree and specifically comprise:
The sign that said control data is write indegree is specially: the N time upgrading sign;
Said 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 said 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 said first data then.
The step of said write first data and said setting are write and are also comprised step between the step of Backup end sign:
Said data transfer apparatus is provided with the sign of control backup verification number of times;
Said data transfer apparatus is provided with and writes the Backup end sign when the sign of said control backup verification number of times is effective.
The step that said data transfer apparatus is provided with the sign of control backup verification number of times is specially:
The sign of said control backup verification number of times is specially: the N time backup check mark;
Said data transfer apparatus judges whether the N time backup check mark be effective, if invalid, N=1 is set then, then said 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 said 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;
Said data transfer apparatus writes back the sign of number of times when effective at said control data, writes said second data.
Saidly the step that control data writes back the sign of number of times be set be specially:
The sign that said control data writes back number of times is specially: the N secondary data writes back sign;
Said 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 said second data then.
Also comprise step after the step of said write second data:
Judge whether said second data are correct, if incorrect, then if uploaded state correct, then is provided with said 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 said first ED after, write the Backup end sign in the Sign module setting, so that said first data can be visited;
Second writing module is used for according to said first data, writes second data that have preset mapping relations with said first data to operational module;
Activation marker is provided with module, be used to write said second ED after, at said Sign module activation marker is set, so that said second data can be visited;
The base address of said operational module is positioned at said Sign module;
Said backup module is positioned at backup space; Said operational module is positioned at work space; Said Sign module is positioned at the sign space; Separate between said backup space, work space and the sign space;
Wherein, said data transfer apparatus also comprises: 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;
Said first writing module is used for writing the sign of indegree when effective at said control data, writes said first data.
The base address of said operational module is positioned at the current pointer district of said Sign module for searching sign, and after said second data write said operational module, said data transfer apparatus utilized the base address of said operational module can find said second data.
Said data transfer apparatus also comprises: 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;
Said control backup verification number of times sign is provided with module, is used for after writing said first data, and the sign of control backup verification number of times is set;
The said Backup end sign of writing is provided with module when the sign of said control backup verification number of times is effective, is provided with and writes the Backup end sign;
Said 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;
Said second writing module writes back the sign of number of times when effective at said control data, writes said 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 said first ED after, write the Backup end sign in the Sign module setting, so that said first data can be visited;
Second writing module is used for according to said first data, writes second data that have preset mapping relations with said first data to operational module;
Activation marker is provided with module, be used to write said second ED after, at said Sign module activation marker is set, so that said second data can be visited;
The base address of said operational module is positioned at said Sign module;
Said backup module is positioned at backup space; Said operational module is positioned at work space; Said Sign module is positioned at the sign space; Separate between said backup space, work space and the sign space;
Wherein, said computing machine also comprises: 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;
Said first writing module is used for writing the sign of indegree when effective at said control data, writes said first data.
The base address of said operational module is positioned at the current pointer district of said Sign module for searching sign, and after said second data write said operational module, said data transfer apparatus utilized the base address of said operational module can find said second data.
Said computing machine also comprises: 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;
Said 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 said Backup end sign of writing is provided with module when the sign of said control backup verification number of times is effective, is provided with and writes the Backup end sign;
Said 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;
Said second writing module writes back the sign of number of times when effective at said control data, writes said 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 through judging these signs whether the data that write are normal, guarantees that the data that newly write only could be visited 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 the data of being visited 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 in non-volatile memory modules (like non-volatile memory devices such as nonvolatile semiconductor memory members such as Nor Flash, NandFlash and hard disk, CF card, the SD cards) process method that 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.
The non-volatile memory modules that this paper mentions 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.
Do further explain below in conjunction with the accompanying drawing specific embodiments of the invention.
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 preset 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 under abnormal conditions such as occur cutting off the power supply, reset, also can write data accurately, 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 said 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 said second data.
Be elaborated in the face of operational module, backup module, Sign module and data transfer apparatus down.
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 up 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 in data transfer apparatus writes data the process of operational module, occurs.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 through 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, the complete process of writing disappear when finishing, 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 in this involves scope, being stored 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 in this scope, being stored 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 in this scope, being stored 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 to be 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. the failure of once writing of sign 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 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 has then been violated rule 4 on hard disk: 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 be by normal access.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, and 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, and 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 preset 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 writes the number of times of failure of the data of backup module, also comprises step before in the step that writes first data:
Data transfer apparatus is provided with the sign that control data is write indegree.
Because possibly 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 ml, 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; Data to writing 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 through 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 by the predetermined mapped rule again.
Before writing the step of second data to operational module, for when abnormal conditions such as outage occurring, control writes back the number of times of failure of the data of operational module, also comprises step before in the step that writes second data:
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 the bright specifically sign that in writing the process of data, how to be provided with an embodiment below.
If will file test.bin be write hard disk, can articulate a USB dish earlier, to make compressed file test.zip to test.bin and deposit in the USB dish, the process that on the USB dish, writes file 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;, CPU again the test.zip on the USB dish is not launched when being in a hurry; 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 through 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.
The above sign of mentioning has following characteristics:
1, sign produces according to time order and function in order, 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 when writing Sign module unusual, 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 carried out one time again, the sign that then damages can be resumed.
If appear at the backup module stage of writing unusually, then can confirm does not also have the write operation to operational module takes place 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 confirm 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 improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (10)

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 said first ED, the Backup end sign is write in said data transfer apparatus setting, so that said first data can be visited;
Said data transfer apparatus writes second data that have preset mapping relations with said first data according to said first data;
After writing second ED, said data transfer apparatus is provided with activation marker, so that said second data can be visited;
Wherein, said data transfer apparatus writes and also comprises step before the step of first data:
Data transfer apparatus is provided with the sign that control data is write indegree;
Said data transfer apparatus is write the sign of indegree when effective at said control data, writes said first data.
2. the method for claim 1 is characterized in that, said data transfer apparatus is provided with control data and writes the step of the sign of indegree and specifically comprise:
The sign that said control data is write indegree is specially: the N time upgrading sign;
Said 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 said 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 said first data then.
3. the method for claim 1 is characterized in that, the step of said write first data and said setting are write and also comprised step between the step of Backup end sign:
Said data transfer apparatus is provided with the sign of control backup verification number of times;
Said data transfer apparatus is provided with and writes the Backup end sign when the sign of said control backup verification number of times is effective.
4. method as claimed in claim 3 is characterized in that, the step that said data transfer apparatus is provided with the sign of control backup verification number of times is specially:
The sign of said control backup verification number of times is specially: the N time backup check mark;
Said data transfer apparatus judges whether the N time backup check mark be effective, if invalid, N=1 is set then, then said 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 said 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.
5. 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;
Said data transfer apparatus writes back the sign of number of times when effective at said control data, writes said second data.
6. method as claimed in claim 5 is characterized in that, saidly the step that control data writes back the sign of number of times is set is specially:
The sign that said control data writes back number of times is specially: the N secondary data writes back sign;
Said 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 said 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 said second data then.
7. the method for claim 1 is characterized in that, also comprises step after the step of said write second data:
Judge whether said second data are correct, if incorrect, then if uploaded state correct, then is provided with said activation marker.
8. 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 said first ED after, write the Backup end sign in the Sign module setting, so that said first data can be visited;
Second writing module is used for according to said first data, writes second data that have preset mapping relations with said first data to operational module;
Activation marker is provided with module, be used to write said second ED after, at said Sign module activation marker is set, so that said second data can be visited;
The base address of said operational module is positioned at said Sign module;
Said backup module is positioned at backup space; Said operational module is positioned at work space; Said Sign module is positioned at the sign space; Separate between said backup space, work space and the sign space;
Wherein, said data transfer apparatus also comprises: 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;
Said first writing module is used for writing the sign of indegree when effective at said control data, writes said first data.
9. data transfer apparatus as claimed in claim 8; It is characterized in that; The base address of said operational module is for searching sign; Be positioned at the current pointer district of said Sign module, after said second data write said operational module, said data transfer apparatus utilized the base address of said operational module can find said second data.
10. data transfer apparatus as claimed in claim 8 is characterized in that, said data transfer apparatus also comprises: 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;
Said control backup verification number of times sign is provided with module, is used for after writing said first data, and the sign of control backup verification number of times is set;
The said Backup end sign of writing is provided with module when the sign of said control backup verification number of times is effective, is provided with and writes the Backup end sign;
Said 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;
Said second writing module writes back the sign of number of times when effective at said control data, writes said 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 CN101593153A (en) 2009-12-02
CN101593153B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (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
CN101145394A (en) * 2006-09-13 2008-03-19 三星电子株式会社 Apparatus and method for providing atomicity with respect to request of write operation for successive sector

Patent Citations (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
CN101145394A (en) * 2006-09-13 2008-03-19 三星电子株式会社 Apparatus and method for providing atomicity with respect to request of write operation for successive sector

Also Published As

Publication number Publication date
CN101593153A (en) 2009-12-02

Similar Documents

Publication Publication Date Title
CN102043686B (en) Disaster tolerance method, backup server and system of memory database
US9501231B2 (en) Storage system and storage control method
CN101118507B (en) Computer system and snapshot creation method thereof
TWI394041B (en) Method and device to improve usb flash write performance
CN101369247B (en) Method for creating a memory defect map and optimizing performance using the memory defect map
CN101313287A (en) Initialization of flash storage via an embedded controller
CN102270144A (en) Embedded network equipment and method for upgrading firmware by using same
CN107943414A (en) The file partition of built-in Linux and data read-write method
CN102081577A (en) Data storage structure of Flash memory and data manipulation mode thereof
CN101714062A (en) Improved hybrid drive
CN106776106A (en) A kind of date storage method based on NandFlash
CN101482837B (en) Error correction method and apparatus for flash memory file system
CN101382918A (en) NAND flash memory optimizing and managing method based on data interchange zone
AU2010256179B2 (en) Method and device for reading and writing a memory card
CN110096300A (en) A kind of fpga program file backup management system, operation method and upgrade method
CN102460401A (en) Techniques for system recovery using change tracking
CN109783011A (en) It stores equipment and stores the recovery method of equipment
CN106104515A (en) Utilize File system design and the fault recovery method of nonvolatile memory
CN101403972A (en) Memory card guiding method and device of embedded system
CN101593153B (en) Method, device and computer for writing data into nonvolatile storage medium
CN103544097B (en) The log storing method of embedded system, system and log read method and system
US9003129B1 (en) Techniques for inter-storage-processor cache communication using tokens
CN102737716B (en) Memorizer memory devices, Memory Controller and method for writing data
CN109325005A (en) A kind of data processing method and electronic equipment
CN105404475A (en) Storage management system and method for small-capacity flash in MCU chip

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
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

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

Granted publication date: 20120704

Termination date: 20190617