CN105045721A - Method and device for checking data consistency - Google Patents

Method and device for checking data consistency Download PDF

Info

Publication number
CN105045721A
CN105045721A CN201510438895.1A CN201510438895A CN105045721A CN 105045721 A CN105045721 A CN 105045721A CN 201510438895 A CN201510438895 A CN 201510438895A CN 105045721 A CN105045721 A CN 105045721A
Authority
CN
China
Prior art keywords
data
data cell
consistency
verification
bag tail
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.)
Pending
Application number
CN201510438895.1A
Other languages
Chinese (zh)
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510438895.1A priority Critical patent/CN105045721A/en
Publication of CN105045721A publication Critical patent/CN105045721A/en
Pending legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)

Abstract

The invention provides a method and device for checking data consistency. The method comprises the following steps: determining a logic block address LBA corresponding to a data unit aiming at each data unit in need of being stored; carrying the LBA corresponding to each data unit in the data unit; storing various data units in storage equipment; checking whether a first storage position where the first data unit is stored is correct or not by utilizing the LBA carried in the first data unit while checking the data consistency aiming at the first data unit stored in the storage equipment, if correct, passing the consistency check, and or else, failing to pass the consistency check. By means of the scheme, check of the data consistency is more accurate.

Description

A kind of method and apparatus of consistency verification of data
Technical field
The present invention relates to computer memory technical, particularly a kind of method and apparatus of consistency verification of data.
Background technology
Along with the development of computer technology, data are that magnanimity increases.Need data to be stored in memory device such as disk array, in order to follow-up use.
When data being stored in memory device, may occur storage errors, such as, make a mistake in the memory location of some data, and different data overlap on memory location.In order to avoid follow-up from memory device, read data time make a mistake, then data are being stored into after in memory device, are needing to carry out consistency desired result to stored data so that can according to consistency desired result result, the memory location of adjustment data.
Current data consistency verification method mainly comprises: need for each the data that are stored in memory device, calculate the check code of its correspondence; Data are stored in memory device; When needing the consistance of checking data, utilizing the check code of the data on the check code of the data obtained in advance and corresponding stored position to contrast, if unanimously, then passing through consistency desired result.
But current data consistency verification method, only by the mode of check code, more adequately cannot carry out consistency desired result to data.
Summary of the invention
The invention provides a kind of method and apparatus of consistency verification of data, consistency verification of data can be made more accurate.
A method for consistency verification of data, comprising:
Need the data cell of storage for each, determine the LBA (Logical Block Addressing) LBA that this data cell is corresponding;
LBA corresponding for each data cell is carried in this data cell;
Each data cell is stored in memory device;
When the first data cell stored in for memory device carries out consistency verification of data, utilize the first memory location of this first data cell of LBA verification storage of carrying in the first data cell whether correct, if correct, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
After described consistency desired result failure, comprise further: according to the LBA carried in described first data cell, determine the second memory location in described memory device, described first data cell is stored into described second memory location.
Comprise further: pre-set bag tail tag and know;
Describedly LBA corresponding for each data cell is carried at this data cell comprises further: carry described bag tail tag at the afterbody of each data cell and know;
Described utilize carry in the first data cell LBA verification store this first data cell the first memory location after, and described determine that consistency desired result passes through before, comprise further:
Utilize the described bag tail tag carried in the first data cell to know and carry out consistency checking.
Described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking comprise:
From the packet header of described first data cell, search backward frame by frame, judge before the packet header finding next data cell, whether find described bag tail tag and know, if found, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
Described bag tail tag is known and is comprised: any one or more in test file name, equipment Serial Number and test thread number.
When described bag tail tag knowledge comprises test file name, described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking comprise: judge whether the title of the test file of current execution consistency verification of data mates with the test file name in the first data cell, if, then determine that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises equipment Serial Number, described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking comprise: judge whether the sequence number of the equipment of current execution consistency verification of data mates with the equipment Serial Number in the first data cell, if, then determine that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises test thread number, described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking comprise: judge whether the thread number of the thread of current execution consistency verification of data mates with the test thread number in the first data cell, if, then determine that consistency verification of data is passed through, otherwise, verify unsuccessfully.
A device for consistency verification of data, comprising:
Data cell processing module, for needing the data cell stored for each, determines the LBA (Logical Block Addressing) LBA that this data cell is corresponding, is carried at by LBA corresponding for each data cell in this data cell;
Memory module, for being stored in memory device by each data cell;
Verification execution module, when the first data cell for storing in for memory device carries out consistency verification of data, utilize the first memory location of this first data cell of LBA verification storage of carrying in the first data cell whether correct, if correct, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
Comprise: described data cell processing module, carry at the afterbody of each data cell the bag tail tag pre-set further and know;
Described verification performance element, described determine that consistency desired result passes through before, utilize the described bag tail tag carried in the first data cell to know and carry out consistency desired result.
Described verification performance element comprises:
First verification performs subelement, for perform described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking time, specifically from the packet header of described first data cell, search backward frame by frame, judge before the packet header finding next data cell, whether find described bag tail tag and know, if found, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
Described verification performance element comprises:
Second verification performs subelement, for perform described utilize the described bag tail tag carried in the first data cell to know to carry out consistency desired result time,
When described bag tail tag knowledge comprises test file name, second verification performs subelement and judges whether the title of the test file of current execution consistency verification of data mates with the test file name in the first data cell, if so, then determines that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises equipment Serial Number, second verification performs subelement and judges whether the sequence number of the equipment of current execution consistency verification of data mates with the equipment Serial Number in the first data cell, if so, then determines that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises test thread number, second verification performs subelement and judges whether the thread number of the thread of current execution consistency verification of data mates with the test thread number in the first data cell, if so, then determines that consistency verification of data is passed through, otherwise, verify unsuccessfully.
The method and apparatus of the consistency verification of data that the embodiment of the present invention provides, the structure of data cell is changed, can reflect that the LBA of data cell expection writing position is carried in data cell, like this, follow-up carry out consistency verification of data time, then can judge that whether the actual storage locations of data cell is identical with expection writing position based on LBA, if not identical, then can determine consistency verification of data failure, if identical, then can determine that consistency verification of data is passed through.Visible, by needing the mode of carrying LBA in the data cell stored, consistency verification of data can be made more accurate.
Accompanying drawing explanation
Fig. 1 is the process flow diagram carrying out consistency verification of data in one embodiment of the invention.
Fig. 2 is the process flow diagram carrying out consistency verification of data in another embodiment of the present invention.
Fig. 3 is data block misalignment schematic diagram in one embodiment of the invention.
Fig. 4 is data block overlapping cases schematic diagram in one embodiment of the invention.
Fig. 5 is the structural representation of one embodiment of the invention consistency verification of data device.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
One embodiment of the invention proposes a kind of method of consistency verification of data, see Fig. 1, comprising:
Step 101: the data cell needing storage for each, determines the LBA (Logical Block Addressing) LBA that this data cell is corresponding;
Step 102: LBA corresponding for each data cell is carried in this data cell;
Step 103: each data cell is stored in memory device;
Step 104: when the first data cell stored in for memory device carries out consistency verification of data, utilize the LBA verification of carrying in the first data cell whether correctly to store the first memory location of this first data cell, if correctly, then perform step 105, otherwise, perform step 106.
Step 105: determine that consistency desired result passes through, terminates current process;
Step 106: determine consistency desired result failure.
Visible, the structure of method to data cell of the consistency verification of data of the embodiment of the present invention is changed, can reflect that the LBA of data cell expection writing position is carried in data cell, like this, follow-up carry out consistency verification of data time, then can based on LBA judge the actual storage locations of data cell and expection writing position whether identical, if not identical, then can determine consistency verification of data failure, if identical, then can determine that consistency verification of data is passed through.Visible, by needing the mode of carrying LBA in the data cell stored, consistency verification of data can be made more accurate.
Based in the embodiment of the present invention, the mode of LBA is carried in data cell, the accurate expection writing position of this data cell can be provided for consistency verification of data, when consistency verification of data failure, accurately can determine that the failed reason of verification is the dislocation of data cell memory location, thus accurately locate failure cause.
In an embodiment of the invention, based on the result of consistency desired result, Row sum-equal matrix can be stored into data cell when verifying unsuccessfully, to ensure to store correct.Concrete storage adjustment can comprise: after determining consistency desired result failure in step 106, according to the LBA carried in described first data cell, determine the second memory location in described memory device, described first data cell is stored into described second memory location.
In an embodiment of the invention, can also carry out consistency verification of data perfect further, not only verify based on LBA, the location of data cell bag tail can also be realized further, to carry out further consistency verification of data based on this bag tail.In such cases, pre-set bag tail tag in an embodiment of the invention to know; Further, step 102 comprises further: carry described bag tail tag at the afterbody of each data cell and know; Between step 104 and step 105, carry out further consistency verification of data, comprising: utilize the described bag tail tag carried in the first data cell to know and carry out consistency checking.
In an embodiment of the invention, utilize bag tail tag to know carrying out consistency checking can be specifically whether realize verification two data cells overlapping, and according to the location of bag tail, accurately identifies complete data cell.In such cases, utilize the described bag tail tag knowledge of carrying in the first data cell to carry out consistency checking specifically to comprise: from the packet header of described first data cell, search backward frame by frame, judge before the packet header finding next data cell, whether find described bag tail tag and know, if found, then determine that consistency desired result passes through, otherwise, determine, between the first data cell and its next data cell, data overlap occurs, determine consistency desired result failure.
In an embodiment of the invention, know to make bag tail tag and more can have identification, and, with executor's information association of test, to locate the reason of consistency problem more accurately, described bag tail tag is known and can be comprised: any one or more in test file name, equipment Serial Number and test thread number.
Wherein, when the knowledge of bag tail tag comprises test file name, be the title utilizing test file data cell being carried out to consistency desired result, visible, the test file name known as bag tail tag is tested corresponding test file associate with actual, thus can carry out the consistency verification of data of being correlated with.When bag tail tag know comprise equipment Serial Number time, be utilize the sequence number of equipment performing consistency verification of data to verify, thus also can carry out the consistency verification of data of being correlated with.When bag tail tag know comprise test thread number time, be utilize the thread number of thread performing consistency verification of data to verify, thus carry out the verification of being correlated with.
Particularly, in an embodiment of the invention, when described bag tail tag knowledge comprises test file name, utilize the described bag tail tag knowledge of carrying in the first data cell to carry out consistency checking specifically to comprise: judge whether the title of the test file of current execution consistency verification of data mates with the test file name in the first data cell, if, then determine that consistency verification of data is passed through, otherwise, verify unsuccessfully.Based on this, achieve the verification of the test file to current execution consistency verification of data, enriched the content of consistency verification of data, improve the reliability of verification.
In an embodiment of the invention, when described bag tail tag knowledge comprises equipment Serial Number, utilize the described bag tail tag knowledge of carrying in the first data cell to carry out consistency checking specifically can comprise: judge whether the sequence number of the equipment of current execution consistency verification of data mates with the equipment Serial Number in the first data cell, if, then determine that consistency verification of data is passed through, otherwise, verify unsuccessfully.Based on this, achieve the verification of the equipment to current execution consistency verification of data, enriched the content of consistency verification of data, improve the reliability of verification.
In an embodiment of the invention, when described bag tail tag knowledge comprises test thread number, utilize the described bag tail tag knowledge of carrying in the first data cell to carry out consistency checking can comprise: judge whether the thread number of the thread of current execution consistency verification of data mates with the test thread number in the first data cell, if, then determine that consistency verification of data is passed through, otherwise, verify unsuccessfully.Based on this, achieve the verification of the thread to current execution consistency verification of data, enriched the content of consistency verification of data, improve the reliability of verification.
In order to clearly embody in one embodiment of the invention the process realizing consistency verification of data, see Fig. 2, the data cell minimum for each and data block, this checking procedure comprises:
Step 201: pre-set the knowledge of bag tail tag and comprise: test file name, equipment Serial Number and test thread number.
Step 202: when each data block is stored in memory device such as disk by needs, calculate LBA (Logical Block Addressing) corresponding to each data block (LBA).
Step 203: each LBA calculated is carried at respectively in the packet header of corresponding data block.
Step 204: carry the bag tail tag pre-set and know in the bag tail of each data block.
Through the process of above-mentioned steps 203 and step 204, the packet header of each data block and the structure of bag tail can be as shown in table 1 below.
Table 1
Can find out according to table 1, the knowledge of bag tail tag comprises: the test thread number being positioned at last 4 bits, is positioned at the equipment Serial Number of the 5th bit reciprocal to the 12nd bit reciprocal, and is positioned at the test file name of the 13rd bit reciprocal 20th bit extremely reciprocal.
Step 205: each data block after data structure being changed is stored in disk respectively.
Step 206: run corresponding test file by the equipment of current execution consistency verification of data, and the thread calling current execution verification starts to perform consistency verification of data.
Step 207: for the current data block needing verification, be designated as data block 1, obtain the deviation post that this data block 1 is storing in disk.
Step 208: utilize the LBA carried in the packet header of data block 1, whether the memory location (deviation post namely calculated) that verification stores this data block 1 is correct, if correctly, then performs step 209, otherwise, consistency desired result failure.
In this step, the disk calculations of offset formula that the writing position of data block expection is corresponding is as follows: disk offset=LBA × Block_Size, and wherein, offset is disk deviation post, and Block_Size is the size of data block; Utilizing after the LBA in data block 1 calculates expection disk deviation post offset, actual disk deviation post when can store in disk with data block 1 is current contrasts, if different, then represent that data block 1 is not stored in correct position, consistency verification of data failure, if identical, then can continue follow-up data consistency desired result process.
Particularly, see Fig. 3, under normal circumstances, there is corresponding relation in LBA and the offset of data block.Such as content as shown in block correct in figure, namely when the LBA carried in data block is 2, the deviation post that data block is expected in disk is 1024.But erroneous block shows, the LBA being the data block of 1024 positions in disk skew is 100, shows that the LBA of this position is not written to the position of expection write, but has occurred position deviation, write this position by mistake.Thus conveniently can determine that the inconsistent reason of data is that the dislocation of data block causes.
In addition, in this step, in the memory location mistake due to data block 1 after consistency verification of data failure, corresponding storage corrigendum process can be performed, comprise: according to the LBA carried in data block 1, determine the correct memory location of data block 1 in described memory device, data block 1 is stored into correct memory location.
Step 209: in disk, from the packet header of data block 1, searches frame by frame backward, judge before the packet header finding next data cell, whether find the bag tail tag carried in data block 1 and know, if found, then perform step 210, otherwise, determine consistency desired result failure.
If the position storing data block 1 in disk starts the bag tail not finding data block 1, but directly find again the packet header of next data block 2, illustrate, between data block 1 and data block 2, data overlap occurs, then consistency desired result failure.Such as, shown in Figure 4, under normal circumstances, each data block can find corresponding packet header and bag tail.But the situation in the diagram, it is obviously the position that data block B has striden into data block A place, there is the overlap between data block, the bag tail information of natural data block A has also just been override by data block B, by the confirmation of packet header and bag tail, the data inconsistence problems that data block overlap causes just clearly can be seen.
Step 210: judge whether the title of the test file of current execution consistency verification of data mates with the test file name in data block 1, and whether the sequence number of the equipment of current execution consistency verification of data mates with the equipment Serial Number in data block 1, and whether the thread number of the thread of current execution consistency verification of data mates with the test thread number in data block 1, if all mated, then perform step 211, any one does not mate, then consistency desired result failure.
Step 211: consistency verification of data success.
One embodiment of the invention also proposed a kind of device of consistency verification of data, see Fig. 5, comprising:
Data cell processing module 501, for needing the data cell stored for each, determines the LBA (Logical Block Addressing) LBA that this data cell is corresponding, is carried at by LBA corresponding for each data cell in this data cell;
Memory module 502, is stored in memory device for each data cell after data cell processing module 501 being processed;
Verification execution module 503, when the first data cell for storing in for memory device carries out consistency verification of data, utilize the first memory location of this first data cell of LBA verification storage of carrying in the first data cell whether correct, if correct, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
In an embodiment of the invention, described data cell processing module 501, carries at the afterbody of each data cell the bag tail tag pre-set further and knows;
Described verification performance element 503, described determine that consistency desired result passes through before, utilize the described bag tail tag carried in the first data cell to know and carry out consistency desired result.
In an embodiment of the invention, described verification performance element 503 comprises:
First verification performs subelement, for perform described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking time, specifically from the packet header of described first data cell, search backward frame by frame, judge before the packet header finding next data cell, whether find described bag tail tag and know, if found, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
In an embodiment of the invention, described verification performance element 503 comprises:
Second verification performs subelement, for perform described utilize the described bag tail tag carried in the first data cell to know to carry out consistency desired result time,
When described bag tail tag knowledge comprises test file name, second verification performs subelement and judges whether the title of the test file of current execution consistency verification of data mates with the test file name in the first data cell, if so, then determines that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises equipment Serial Number, second verification performs subelement and judges whether the sequence number of the equipment of current execution consistency verification of data mates with the equipment Serial Number in the first data cell, if so, then determines that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises test thread number, second verification performs subelement and judges whether the thread number of the thread of current execution consistency verification of data mates with the test thread number in the first data cell, if so, then determines that consistency verification of data is passed through, otherwise, verify unsuccessfully.
Each embodiment of the present invention at least has following beneficial effect:
1, in the embodiment of the present invention, the structure of data cell is changed, can reflect that the LBA of data cell expection writing position is carried in data cell, like this, follow-up carry out consistency verification of data time, then can based on LBA judge the actual storage locations of data cell and expection writing position whether identical, if not identical, then can determine consistency verification of data failure, if identical, then can determine that consistency verification of data is passed through.Visible, by needing the mode of carrying LBA in the data cell stored, consistency verification of data can be made more accurate.
2, in the embodiment of the present invention, further change has been carried out to the structure of data cell, the preset value bag tail tag of identification data unit tail is known the afterbody being carried at data cell, the reference position of each data block is picked out clearly, the corresponding problem in convenient location in convenient each binary data storing.
3, in the embodiment of the present invention, it can be any one or more in test file name, equipment Serial Number and test thread number that bag tail tag is known, therefore the identification of bag stern construction is considerably increased, and make executor's information association of follow-up data consistency desired result and test, to locate the reason of consistency problem more accurately, enrich the content of consistency verification of data, improve the reliability of verification.
4, in the embodiment of the present invention, can be that structural modification is carried out to a minimum data cell i.e. data block, and consistency verification of data is carried out to data block, thus reduce the granularity of positioning problems, be convenient to find more concealed mistake.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. a method for consistency verification of data, is characterized in that, comprising:
Need the data cell of storage for each, determine the LBA (Logical Block Addressing) LBA that this data cell is corresponding;
LBA corresponding for each data cell is carried in this data cell;
Each data cell is stored in memory device;
When the first data cell stored in for memory device carries out consistency verification of data, utilize the first memory location of this first data cell of LBA verification storage of carrying in the first data cell whether correct, if correct, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
2. method according to claim 1, it is characterized in that, after described consistency desired result failure, comprise further: according to the LBA carried in described first data cell, determine the second memory location in described memory device, described first data cell is stored into described second memory location.
3. method according to claim 1, is characterized in that, comprises further: pre-set bag tail tag and know;
Describedly LBA corresponding for each data cell is carried at this data cell comprises further: carry described bag tail tag at the afterbody of each data cell and know;
Described utilize carry in the first data cell LBA verification store this first data cell the first memory location after, and described determine that consistency desired result passes through before, comprise further:
Utilize the described bag tail tag carried in the first data cell to know and carry out consistency checking.
4. method according to claim 3, is characterized in that, described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking comprise:
From the packet header of described first data cell, search backward frame by frame, judge before the packet header finding next data cell, whether find described bag tail tag and know, if found, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
5. method according to claim 3, is characterized in that, described bag tail tag is known and comprised: any one or more in test file name, equipment Serial Number and test thread number.
6. method according to claim 5, it is characterized in that, when described bag tail tag knowledge comprises test file name, described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking comprise: judge whether the title of the test file of current execution consistency verification of data mates with the test file name in the first data cell, if, then determine that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises equipment Serial Number, described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking comprise: judge whether the sequence number of the equipment of current execution consistency verification of data mates with the equipment Serial Number in the first data cell, if, then determine that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises test thread number, described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking comprise: judge whether the thread number of the thread of current execution consistency verification of data mates with the test thread number in the first data cell, if, then determine that consistency verification of data is passed through, otherwise, verify unsuccessfully.
7. a device for consistency verification of data, is characterized in that, comprising:
Data cell processing module, for needing the data cell stored for each, determines the LBA (Logical Block Addressing) LBA that this data cell is corresponding, is carried at by LBA corresponding for each data cell in this data cell;
Memory module, for being stored in memory device by each data cell;
Verification execution module, when the first data cell for storing in for memory device carries out consistency verification of data, utilize the first memory location of this first data cell of LBA verification storage of carrying in the first data cell whether correct, if correct, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
8. device according to claim 7, is characterized in that, comprising: described data cell processing module, carries the bag tail tag pre-set further know at the afterbody of each data cell;
Described verification performance element, described determine that consistency desired result passes through before, utilize the described bag tail tag carried in the first data cell to know and carry out consistency desired result.
9. device according to claim 8, is characterized in that, described verification performance element comprises:
First verification performs subelement, for perform described utilize the described bag tail tag carried in the first data cell to know to carry out consistency checking time, specifically from the packet header of described first data cell, search backward frame by frame, judge before the packet header finding next data cell, whether find described bag tail tag and know, if found, then determine that consistency desired result passes through, otherwise, determine consistency desired result failure.
10. device according to claim 8, is characterized in that, described verification performance element comprises:
Second verification performs subelement, for perform described utilize the described bag tail tag carried in the first data cell to know to carry out consistency desired result time,
When described bag tail tag knowledge comprises test file name, second verification performs subelement and judges whether the title of the test file of current execution consistency verification of data mates with the test file name in the first data cell, if so, then determines that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises equipment Serial Number, second verification performs subelement and judges whether the sequence number of the equipment of current execution consistency verification of data mates with the equipment Serial Number in the first data cell, if so, then determines that consistency verification of data is passed through, otherwise, verify unsuccessfully;
When described bag tail tag knowledge comprises test thread number, second verification performs subelement and judges whether the thread number of the thread of current execution consistency verification of data mates with the test thread number in the first data cell, if so, then determines that consistency verification of data is passed through, otherwise, verify unsuccessfully.
CN201510438895.1A 2015-07-23 2015-07-23 Method and device for checking data consistency Pending CN105045721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510438895.1A CN105045721A (en) 2015-07-23 2015-07-23 Method and device for checking data consistency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510438895.1A CN105045721A (en) 2015-07-23 2015-07-23 Method and device for checking data consistency

Publications (1)

Publication Number Publication Date
CN105045721A true CN105045721A (en) 2015-11-11

Family

ID=54452284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510438895.1A Pending CN105045721A (en) 2015-07-23 2015-07-23 Method and device for checking data consistency

Country Status (1)

Country Link
CN (1) CN105045721A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032859A (en) * 2018-06-26 2018-12-18 郑州云海信息技术有限公司 A kind of NVME SSD logical block detection method, system and relevant apparatus
CN109271399A (en) * 2018-11-19 2019-01-25 武汉达梦数据库有限公司 A kind of method of calibration of database write-in log consistency
CN109597821A (en) * 2018-12-12 2019-04-09 北京谷数科技有限公司 A kind of method of calibration of storing data consistency
CN110309082A (en) * 2019-04-23 2019-10-08 深圳市全智芯科技有限公司 Date storage method, storage system and microcontroller
CN111176568A (en) * 2019-12-26 2020-05-19 苏州浪潮智能科技有限公司 Data analysis method and device
CN113157512A (en) * 2021-04-29 2021-07-23 山东华芯半导体有限公司 Method for realizing data verification test of large-capacity SSD on small-memory machine
CN116756162A (en) * 2023-06-28 2023-09-15 蝉鸣科技(西安)有限公司 Method and system for guaranteeing data consistency

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236524A (en) * 2007-01-16 2008-08-06 三星电子株式会社 Hybrid hard disk drive, computer system including the same, and flash memory DMA circuit
CN101512491A (en) * 2005-04-15 2009-08-19 英特尔公司 Power-safe disk storage apparatus, systems, and methods
CN103645963A (en) * 2013-12-26 2014-03-19 深圳市迪菲特科技股份有限公司 Storage system and data consistency verification method thereof
CN104182701A (en) * 2014-08-15 2014-12-03 华为技术有限公司 Array control unit, array and data processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101512491A (en) * 2005-04-15 2009-08-19 英特尔公司 Power-safe disk storage apparatus, systems, and methods
CN101236524A (en) * 2007-01-16 2008-08-06 三星电子株式会社 Hybrid hard disk drive, computer system including the same, and flash memory DMA circuit
CN103645963A (en) * 2013-12-26 2014-03-19 深圳市迪菲特科技股份有限公司 Storage system and data consistency verification method thereof
CN104182701A (en) * 2014-08-15 2014-12-03 华为技术有限公司 Array control unit, array and data processing method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032859A (en) * 2018-06-26 2018-12-18 郑州云海信息技术有限公司 A kind of NVME SSD logical block detection method, system and relevant apparatus
CN109271399A (en) * 2018-11-19 2019-01-25 武汉达梦数据库有限公司 A kind of method of calibration of database write-in log consistency
CN109597821A (en) * 2018-12-12 2019-04-09 北京谷数科技有限公司 A kind of method of calibration of storing data consistency
CN110309082A (en) * 2019-04-23 2019-10-08 深圳市全智芯科技有限公司 Date storage method, storage system and microcontroller
CN111176568A (en) * 2019-12-26 2020-05-19 苏州浪潮智能科技有限公司 Data analysis method and device
CN111176568B (en) * 2019-12-26 2021-12-10 苏州浪潮智能科技有限公司 Data analysis method and device
CN113157512A (en) * 2021-04-29 2021-07-23 山东华芯半导体有限公司 Method for realizing data verification test of large-capacity SSD on small-memory machine
CN116756162A (en) * 2023-06-28 2023-09-15 蝉鸣科技(西安)有限公司 Method and system for guaranteeing data consistency
CN116756162B (en) * 2023-06-28 2024-03-12 蝉鸣科技(西安)有限公司 Method and system for guaranteeing data consistency

Similar Documents

Publication Publication Date Title
CN105045721A (en) Method and device for checking data consistency
US8725944B2 (en) Implementing raid in solid state memory
US8418030B2 (en) Storage system with data recovery function and method thereof
JP5100663B2 (en) Test apparatus and test method
US9760434B2 (en) ECC method for double pattern flash memory
CN101901169B (en) Scanner and method
CN101599305A (en) Storage system with data repair function and data repair method thereof
TWI486957B (en) Method, device and operating system for processing, using a nand flash memory burn data
CN102339647A (en) Detection method and apparatus for error checking and correcting (ECC) check module
CN111078462B (en) Data verification method and circuit
CN105808371A (en) Data backup and recovery method, control chip and storage device
CN112631516B (en) FLASH file management system with service life management function
CN101303897A (en) Memory structure, repair system and method for testing the same
US7788550B2 (en) Redundant bit patterns for column defects coding
CN106971757A (en) A kind of method and system of inspection Nand Flash mass
CN100468367C (en) Solid state storage unit safety storage system and method
CN109408275A (en) For detecting the verification method and device of correction module
CN101187879B (en) Electronic system and data processing method thereof
CN111428280A (en) SoC (System on chip) security chip key information integrity storage and error self-repairing method
CN106920576A (en) A kind of method and system of inspection Nand Flash mass
CN109698008B (en) Method and device for repairing NOR type memory bit line fault
CN105575439A (en) Memory cell failure error correction method and memory
WO2020015128A1 (en) Method for identifying type of block in flash memory
JPH05266698A (en) Device for inspecting fault of memory cell in array and its method
CN110096402B (en) Verification device and method for chip data exception handling logic

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151111