CN109614044A - A kind of processing method, device and the equipment of solid state hard disk write error - Google Patents
A kind of processing method, device and the equipment of solid state hard disk write error Download PDFInfo
- Publication number
- CN109614044A CN109614044A CN201811474653.8A CN201811474653A CN109614044A CN 109614044 A CN109614044 A CN 109614044A CN 201811474653 A CN201811474653 A CN 201811474653A CN 109614044 A CN109614044 A CN 109614044A
- Authority
- CN
- China
- Prior art keywords
- data
- hard disk
- solid state
- state hard
- write
- 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
Links
- 239000007787 solid Substances 0.000 title claims abstract description 155
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 238000012545 processing Methods 0.000 claims abstract description 52
- 238000003860 storage Methods 0.000 claims abstract description 32
- 238000000034 method Methods 0.000 claims abstract description 12
- 230000006870 function Effects 0.000 claims abstract description 4
- 238000004590 computer program Methods 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 claims description 10
- 238000013506 data mapping Methods 0.000 claims 1
- 238000013500 data storage Methods 0.000 abstract description 8
- 238000013508 migration Methods 0.000 description 8
- 230000005012 migration Effects 0.000 description 8
- 238000013507 mapping Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 230000014759 maintenance of location Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
- G06F3/0619—Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/064—Management of blocks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0647—Migration mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses processing method, device, equipment and the computer readable storage mediums of a kind of solid state hard disk write error, wherein this method comprises: sending corresponding write request to the solid state hard disk when needing that data are written into solid state hard disk;Receive writing as a result, if the result of writing indicates write-in data success for the solid state hard disk return, it is determined that this writes data completion;If the result of writing indicates write-in data failure, then determine that the block that write-in data are currently used in the solid state hard disk is bad block, it is forbidden to use the bad block and realizes corresponding data processing, and return and execute described the step of sending corresponding write request to the solid state hard disk.Thus, when there is write error, can not continue to realize the data processing functions such as corresponding data storage based on bad block, when avoiding in the prior art due to realizing corresponding data storage based on bad block there are the problem of, the stability of storage performance is improved, and ensure that the reliability of the data of storage.
Description
Technical field
The present invention relates to solid state hard disk technical fields, more specifically to a kind of processing side of solid state hard disk write error
Method, device, equipment and computer readable storage medium.
Background technique
Solid state hard disk (Solid State Drives, SSD) referred to as consolidates disk, and solid state hard disk includes multiple pieces (block),
And each piece includes multiple pages (page).After being used for a long time due to solid state hard disk, bad block (block of damage) generation is had, is being needed
When data being written into solid state hard disk, if write-in is unsuccessful, it may be considered that data be written into block be bad block;Due to
Bad block may only exist some or certain multiple pages damage, therefore, determining currently to be written into data in the prior art
Block be bad block when, it will usually continue to attempt to be written in other pages in bad block in addition to the page being currently written into, namely i.e.
Make bad block occur, it is also possible to continue to realize the processing of data based on the bad block.But it since bad block has damaged, can be provided
Storage performance be unstable, it is easy to damage again, this will lead to storage data reliability it is lower.
In conclusion realizing the processing scheme of solid state hard disk write error in the prior art, that there are storage performances is unstable, number
According to the lower problem of reliability.
Summary of the invention
The object of the present invention is to provide a kind of processing method of solid state hard disk write error, device, equipment and computer-readable
Storage medium, be able to solve in the prior art realize solid state hard disk write error processing scheme existing for storage performance it is unstable,
The lower problem of data reliability.
To achieve the goals above, the invention provides the following technical scheme:
A kind of processing method of solid state hard disk write error, comprising:
When needing that data are written into solid state hard disk, corresponding write request is sent to the solid state hard disk;
Receive writing as a result, if the result of writing indicates write-in data success for the solid state hard disk return, it is determined that this
It is secondary to write data completion;If the result of writing indicates write-in data failure, it is determined that be currently used in write-in in the solid state hard disk
The block of data is bad block, is forbidden to use the bad block and realizes corresponding data processing, and returns to execution corresponding write of the transmission and ask
The step of asking to the solid state hard disk.
Preferably, determine the block for being currently used in write-in data in the solid state hard disk for after bad block, further includes:
It determines that the data in the bad block are the data for needing to be written into the solid state hard disk, and executes the transmission pair
The step of write request answered to solid state hard disk.
Preferably, determine that the data in the bad block are the data for needing to be written into the solid state hard disk, comprising:
Determine that the valid data in the bad block are the data for needing to be written into the solid state hard disk, the valid data
For other data other than operation information is the data deleted.
Preferably, it determines and needs that data are written into solid state hard disk, comprising:
When receiving the write request of host transmission, it is hard to the solid-state to need to determine received write request corresponding data
The data being written in disk.
Preferably, it is forbidden to use the bad block and realizes corresponding data processing, comprising:
Marking the bad block is to preset bad block label, realizes corresponding data processing to be forbidden to use the bad block.
Preferably, it determines and needs to be written after data into the solid state hard disk, further includes:
Judge to need whether the data being written into the solid state hard disk take preset cache, if it is, described in executing
The step of sending corresponding write request to the solid state hard disk is sentenced described in execution if it is not, then returning after preset time period
Disconnected the step of needing the data being written into the solid state hard disk whether to take preset cache;Wherein, the preset cache is big
The size of page that the small block with the solid state hard disk includes is identical.
Preferably, further includes:
If the result of writing indicates write-in data success, by the storage position for writing result corresponding data and the data
The mapping relations set are stored.
A kind of processing unit of solid state hard disk write error, comprising:
Request module is used for: when needing that data are written into solid state hard disk, sending corresponding write request to the solid-state
Hard disk;
Processing module is used for: receiving writing as a result, if the result of writing indicates write-in data for the solid state hard disk return
Success, it is determined that this writes data completion;If the result of writing indicates write-in data failure, it is determined that in the solid state hard disk
The block for being currently used in write-in data is bad block, is forbidden to use the bad block and realizes corresponding data processing, and returns and execute the hair
The step of sending corresponding write request to the solid state hard disk.
A kind of processing equipment of solid state hard disk write error, comprising:
Memory, for storing computer program;
Processor realizes the processing of the as above any one solid state hard disk write error when for executing the computer program
The step of method.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described
The step of as above processing method of any one solid state hard disk write error is realized when computer program is executed by processor.
The present invention provides processing method, device, equipment and the computer-readable storage mediums of a kind of solid state hard disk write error
Matter, wherein this method comprises: it is hard to the solid-state to send corresponding write request when needing that data are written into solid state hard disk
Disk;Receive writing as a result, if the result of writing indicates write-in data success for the solid state hard disk return, it is determined that this writes number
According to completion;If the result of writing indicates write-in data failure, it is determined that be currently used in write-in data in the solid state hard disk
Block is bad block, is forbidden to use the bad block and realizes corresponding data processing, and returns and execute the corresponding write request of the transmission to institute
The step of stating solid state hard disk.In technical solution disclosed by the invention, when into solid state hard disk, write error occur in write-in data, really
Surely be currently used in write-in data evil idea be bad block, be forbidden to use bad block realize data storage etc. data processings, and return execution to
The step of corresponding data is written in solid state hard disk can not continue to realize corresponding number based on bad block as a result, when there is write error
According to data processing functions such as storages, avoid in the prior art due to realizing existing when corresponding data storage ask based on bad block
Topic, improves the stability of storage performance, and ensure that the reliability of the data of storage.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the processing method of solid state hard disk write error provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the processing unit of solid state hard disk write error provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, it illustrates a kind of streams of the processing method of solid state hard disk write error provided in an embodiment of the present invention
Cheng Tu may include:
S11: when needing that data are written into solid state hard disk, corresponding write request is sent to solid state hard disk.
A kind of execution subject of the processing method of solid state hard disk write error provided in an embodiment of the present invention can be corresponding
Processing unit.When determining to need that data are written into solid state hard disk, then corresponding write request is sent to solid state hard disk, write request
In may include needing that data into solid state hard disk are written, so that solid state hard disk realizes data write-in.
S12: writing as a result, if writing result indicates write-in data success for solid state hard disk return is received, it is determined that this is write
Data are completed;If writing result indicates write-in data failure, it is determined that it is bad for being currently used in the block of write-in data in solid state hard disk
Block is forbidden to use bad block and realizes corresponding data processing, and returns to the step of execution sends corresponding write request to solid state hard disk.
It should be noted that corresponding data are written into itself memory space after solid state hard disk receives write request,
And it returns and is write as a result, this portion of techniques scheme and the realization principle one for corresponding to technical solution in the prior art after completing write operation
It causes, details are not described herein.Processing unit receive solid state hard disk return write result after, judge that this data is write based on result is write
Enter and whether succeed, if it is, determining that the write-in of this data is completed, otherwise, then it represents that write-in data failure is wrongly write
Accidentally, it needs to be forbidden to use bad block in order to avoid continuing that data are written to bad block as in the prior art at this time and realizes corresponding number
According to data processings such as storages, and indicate that solid state hard disk continues to realize the write-in for needing the data being written into solid state hard disk, directly
Until being written successfully;Due to having forbidden that data are written into bad block at this time, solid state hard disk realizes that data are written again
When will not then consider further that space that bad block is written as data.
In technical solution disclosed by the invention, when write error occur in write-in data into solid state hard disk, current use is determined
It is bad block in the evil idea of write-in data, is forbidden to use bad block and realizes the data processings such as data storage, and return to execution to solid state hard disk
The step of middle write-in corresponding data, can not continue to realize corresponding data storage etc. based on bad block as a result, when there is write error
Data processing function, avoid in the prior art due to based on bad block realize corresponding data storage when there are the problem of, improve
The stability of storage performance, and ensure that the reliability of the data of storage.
A kind of processing method of solid state hard disk write error provided in an embodiment of the present invention, determines in solid state hard disk and is currently used in
The block of data is written as that can also include: after bad block
It determines that the data in bad block are the data for needing to be written into solid state hard disk, and executes and send corresponding write request extremely
The step of solid state hard disk.
It should be noted that the data in bad block can also be re-write to solid state hard disk after determining bad block
In to realize the migrations of data, namely realize gc (garbage collection, the garbage reclamation) processing of data, at this time bad block
In data be then to need to be written data into solid state hard disk, and then realize write-in of the data into solid state hard disk in bad block,
The loss for avoiding data further ensures the reliability of the data of storage.Wherein, after determining bad block, Ke Yiyou
Bad block or solid state hard disk send data-moving and request to processing unit, real after processing unit receives data-moving request
Show the write-in of corresponding data to solid state hard disk.
After by the Data Migration to other positions in bad block, bad block can be wiped, consequently facilitating subsequent realization
The reparation huge profit of bad block is used etc..In addition, after determining bad block first bad block to be processed can be marked for bad block, to realize
Data Migration can be successively carried out to the bad block that label is bad block when Data Migration, and in Data Migration and erasure completion
After mark its for preset bad block label.
A kind of processing method of solid state hard disk write error provided in an embodiment of the present invention determines that the data in bad block are needs
The data being written into solid state hard disk may include:
Determine that the valid data in bad block are the data for needing to be written into solid state hard disk, valid data are in addition to operation is believed
Breath is other data except the data of deletion.
It should be noted that it is the data and other data these two types data deleted that data, which include operation information, in bad block,
Wherein operation information is that the data deleted as indicate the data deleted, and only moves behaviour when realizing data-moving in the application
Making information not is the data deleted, to not only avoid loss of data, and reduces Data Migration amount, improves Data Migration
Efficiency.
A kind of processing method of solid state hard disk write error provided in an embodiment of the present invention determines and needs to write into solid state hard disk
Enter data, may include:
When receiving the write request of host transmission, received write request corresponding data is determined to need into solid state hard disk
The data of write-in.
It should be noted that the case where writing data in the application into solid state hard disk may include two kinds, one kind is write for gc
Enter data, one kind is that data are written in host (host), namely are also required to disclose according to the application when host realizes data write-in
Technical solution realize data write-in, thus ensure that host write-in data reliability.In addition, needing to be written in the case of other
The data of solid state hard disk can also be used as the data for needing to be written into solid state hard disk in the present embodiment, in protection of the invention
Within the scope of.
A kind of processing method of solid state hard disk write error provided in an embodiment of the present invention is forbidden to use bad block and realizes corresponding number
According to processing, may include:
Marking bad block is to preset bad block label, realizes corresponding data processing to be forbidden to use bad block.
Wherein, it presets bad block and is labeled as the label being arranged according to actual needs, after marking bad block to preset bad block label,
Solid state hard disk is when realizing data write-in, it is determined that being marked with and presetting the block of bad block label is cannot achieve data processing bad
Also data would not be written in being marked with the block for presetting bad block label in block, realize corresponding number to realize and be forbidden to use bad block
According to the effect of processing, thus only need to realize bad block the effect for being forbidden to use bad block and realizing corresponding data processing can be realized in label
Fruit, it is easy to operate to be easily not susceptible to mistake.
A kind of processing method of solid state hard disk write error provided in an embodiment of the present invention determines and needs to write into solid state hard disk
After entering data, can also include:
Judge to need whether the data being written into solid state hard disk take preset cache, be corresponded to if it is, executing to send
Write request to solid state hard disk the step of, need to be written to solid-state if it is not, then returning after preset time period and executing judgement
The step of whether data in hard disk take preset cache;Wherein, the block in the size and solid state hard disk of preset cache includes
The size of page is identical.
It should be noted that data are written into solid state hard disk can be written as unit of page, namely hard to solid-state every time
It is that data are write full one page that data are written in disk, in order to realize this effect, be can be set identical with the size of page pre-
If caching, and then after needing the data being written into solid state hard disk to take preset cache, directly by the total data in caching
One page into solid state hard disk is written, otherwise, then waits until preset cache is occupied full, is cached by setting and realize that data are write
Enter, it is easy to operate, and convenient for realizing control to it.
A kind of processing method of solid state hard disk write error provided in an embodiment of the present invention can also include:
If writing result indicates write-in data success, the mapping of the storage location of result corresponding data and the data will be write
Relationship is stored.
It should be noted that after determining write-in data success, it can be with the storage position where data to be written and data
It sets and to form mapping relations and stored, thus when needing to realize data query, number can be fast implemented based on the mapping relations
It is investigated that asking, data storage performance is further improved.
Specifically, scheme disclosed in the present application is hard to solid-state when needing the write request corresponding data for sending host to be written
When disk, it may comprise steps of:
1) write request for receiving host, is filled up to write buffer (preset cache) for write request corresponding data;
If 2) write buffer has expired, sending write-in flash request to solid state hard disk, (solid state hard disk can be based on
Flash is realized, therefore sending write-in flash request is to send write request to solid state hard disk);
3) writing as a result, if reflecting for the data and storage location for successfully updating write-in is written for solid state hard disk return is received
Relationship is penetrated, and prepares next write;If write-in failure, i.e., block goes wrong, then stops continuing to write to, switch block, rewrite
Data are to new block;
4) block to go wrong is labeled as GC_BLOCK, and notifies gc, it will be effective in the block to go wrong
Data are moved;
5) after valid data being moved, this block to go wrong is wiped, and marks it to preset bad block label, such as bad
block。
Scheme disclosed in the present application may include following step when needing the valid data of bad block to be written to solid state hard disk
It is rapid:
1) the data-moving request of the block to go wrong is received;
2) flash is read, the data in the block to go wrong are inserted into write buffer;
If 3) write buffer has expired, (can determine to need it is by the block of Data Migration extremely to target block
Target block) corresponding flash issues write request;
3) writing as a result, if reflecting for the data and storage location for successfully updating write-in is written for solid state hard disk return is received
Penetrate relationship, and prepare it is next write, after valid data have been moved, wipe this block, mark bad block, selected marker is GC_BLOCK's
Block is moved;If write-in failure, i.e. target block go wrong, then stops continuing to write to, target block is labeled as
GC_BLOCK switches block, writes data to new block again.
As a result, using by carrying out stopping write-in to the block for encountering write error, valid data are moved away, are marked after erasing
Bad block is infused, the mode continued to use is prevented, improves product storage performance.
The embodiment of the invention also provides a kind of processing units of solid state hard disk write error, as shown in Fig. 2, may include:
Request module 11, is used for: when needing that data are written into solid state hard disk, it is hard to solid-state to send corresponding write request
Disk;
Processing module 12, is used for: receive solid state hard disk return write as a result, if write result indicate write-in data success,
It then determines and this time writes data completion;If writing result indicates write-in data failure, it is determined that be currently used in write-in in solid state hard disk
The block of data is bad block, is forbidden to use bad block and realizes corresponding data processing, and returns to execution and send corresponding write request to solid-state
The step of hard disk.
A kind of processing unit of solid state hard disk write error provided in an embodiment of the present invention can also include:
Determining module is used for: being determined and is currently used in the block that data are written in solid state hard disk to determine in bad block after bad block
Data be to need the data that are written into solid state hard disk, and execute the step of sending corresponding write request to solid state hard disk.
A kind of processing unit of solid state hard disk write error provided in an embodiment of the present invention, determining module may include:
Determination unit is used for: determining that the valid data in bad block are the data for needing to be written into solid state hard disk, significant figure
According in addition to operation information be delete data other than other data.
A kind of processing unit of solid state hard disk write error provided in an embodiment of the present invention, request module may include:
Request unit is used for: when receiving the write request of host transmission, determining received write request corresponding data to need
The data to be written into solid state hard disk.
A kind of processing unit of solid state hard disk write error provided in an embodiment of the present invention, processing module may include:
Marking unit is used for: marking bad block is to preset bad block label, realizes corresponding data processing to be forbidden to use bad block.
A kind of processing unit of solid state hard disk write error provided in an embodiment of the present invention can also include:
Judgment module is used for: being determined and is needed to be written after data into solid state hard disk, judges to need to be written to solid state hard disk
In data whether take preset cache, if it is, execute the step of sending corresponding write request to solid state hard disk, if
It is no, then return to whether the data for executing and judging that needs are written into solid state hard disk take preset cache after preset time period
Step;Wherein, the size of preset cache is identical as the size for the page that the block in solid state hard disk includes.
A kind of processing unit of solid state hard disk write error provided in an embodiment of the present invention can also include:
Memory module is used for: if writing result indicates write-in data success, will write result corresponding data and the data
The mapping relations of storage location are stored.
The embodiment of the invention also provides a kind of processing equipments of solid state hard disk write error, may include:
Memory, for storing computer program;
Processor realizes the step of the as above processing method of any one solid state hard disk write error when for executing computer program
Suddenly.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored on computer readable storage medium
The processing method of as above any one solid state hard disk write error may be implemented in computer program when computer program is executed by processor
The step of.
It should be noted that processing unit, equipment and the meter of a kind of solid state hard disk write error provided in an embodiment of the present invention
The explanation of relevant portion refers to a kind of solid state hard disk write error provided in an embodiment of the present invention in calculation machine readable storage medium storing program for executing
The detailed description of corresponding part in processing method, details are not described herein.In addition above-mentioned technical proposal provided in an embodiment of the present invention
In with correspond to the consistent part of technical solution realization principle and unspecified in the prior art, in order to avoid excessively repeat.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest
Range.
Claims (10)
1. a kind of processing method of solid state hard disk write error characterized by comprising
When needing that data are written into solid state hard disk, corresponding write request is sent to the solid state hard disk;
Receive writing as a result, if the result of writing indicates write-in data success for the solid state hard disk return, it is determined that this is write
Data are completed;If the result of writing indicates write-in data failure, it is determined that be currently used in write-in data in the solid state hard disk
Block be bad block, be forbidden to use the bad block and realize corresponding data processing, and return to execute and described send corresponding write request extremely
The step of solid state hard disk.
2. being currently used in write-in data in the solid state hard disk the method according to claim 1, wherein determining
Block is after bad block, further includes:
Determine that the data in the bad block are the data for needing to be written into the solid state hard disk, and it is corresponding to execute the transmission
The step of write request to solid state hard disk.
3. according to the method described in claim 2, it is characterized in that, determining that the data in the bad block are to need to the solid-state
The data being written in hard disk, comprising:
Determine that the valid data in the bad block are to need the data that are written into the solid state hard disk, the valid data be except
Operation information is other data except the data deleted.
4. the method according to claim 1, wherein determining needing that data are written into solid state hard disk, comprising:
When receiving the write request of host transmission, received write request corresponding data is determined to need into the solid state hard disk
The data of write-in.
5. the method according to claim 3 or 4, which is characterized in that it is forbidden to use the bad block and realizes corresponding data processing,
Include:
Marking the bad block is to preset bad block label, realizes corresponding data processing to be forbidden to use the bad block.
6. according to the method described in claim 5, it is characterized in that, determine need into the solid state hard disk be written data it
Afterwards, further includes:
Judge to need whether the data being written into the solid state hard disk take preset cache, if it is, executing the transmission
The step of corresponding write request to solid state hard disk, needs if it is not, then returning after preset time period and executing the judgement
The step of whether data being written into the solid state hard disk take preset cache;Wherein, the size of the preset cache with
The size for the page that block in the solid state hard disk includes is identical.
7. according to the method described in claim 6, it is characterized by further comprising:
If the result of writing indicates write-in data success, by the storage location for writing result corresponding data and the data
Mapping relations are stored.
8. a kind of processing unit of solid state hard disk write error characterized by comprising
Request module is used for: when needing that data are written into solid state hard disk, it is hard to the solid-state to send corresponding write request
Disk;
Processing module is used for: receive that the solid state hard disk returns write as a result, if it is described write result indicate write-in data at
Function, it is determined that this writes data completion;If it is described write result indicate write-in data failure, it is determined that in the solid state hard disk when
The preceding block for data to be written is bad block, is forbidden to use the bad block and realizes corresponding data processing, and returns and execute the transmission
The step of corresponding write request to solid state hard disk.
9. a kind of processing equipment of solid state hard disk write error characterized by comprising
Memory, for storing computer program;
Processor realizes the solid state hard disk write error as described in any one of claim 1 to 7 when for executing the computer program
Processing method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, realizing the solid state hard disk write error as described in any one of claim 1 to 7 when the computer program is executed by processor
The step of processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811474653.8A CN109614044A (en) | 2018-12-04 | 2018-12-04 | A kind of processing method, device and the equipment of solid state hard disk write error |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811474653.8A CN109614044A (en) | 2018-12-04 | 2018-12-04 | A kind of processing method, device and the equipment of solid state hard disk write error |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109614044A true CN109614044A (en) | 2019-04-12 |
Family
ID=66005401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811474653.8A Pending CN109614044A (en) | 2018-12-04 | 2018-12-04 | A kind of processing method, device and the equipment of solid state hard disk write error |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109614044A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124296A (en) * | 2019-12-12 | 2020-05-08 | 北京浪潮数据技术有限公司 | Method, device, equipment and storage medium for writing data to solid state disk |
CN111580757A (en) * | 2020-05-14 | 2020-08-25 | 江苏芯盛智能科技有限公司 | Data writing method and system and solid state disk |
CN112579328A (en) * | 2019-09-27 | 2021-03-30 | 北京忆恒创源科技有限公司 | Method for processing programming error and storage device |
CN112885402A (en) * | 2020-12-29 | 2021-06-01 | 北京浪潮数据技术有限公司 | Solid state disk bad block query method and device and computer readable storage medium |
CN116382576A (en) * | 2023-03-17 | 2023-07-04 | 平头哥(上海)半导体技术有限公司 | Storage control chip, solid state disk and related method |
WO2023124571A1 (en) * | 2021-12-28 | 2023-07-06 | 深圳大普微电子科技有限公司 | Storage medium failure processing method and apparatus, and solid state disk |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657088A (en) * | 2015-02-06 | 2015-05-27 | 深圳市锐明视讯技术有限公司 | Acquisition method and device for bad block information of hard disk |
CN106469022A (en) * | 2015-08-20 | 2017-03-01 | 维布络有限公司 | The memory management method of memory driver and system |
CN106873903A (en) * | 2016-12-30 | 2017-06-20 | 北京联想核芯科技有限公司 | Date storage method and device |
CN108614743A (en) * | 2016-12-09 | 2018-10-02 | 北京京存技术有限公司 | Super data block processing method and device based on NAND flash |
CN108829347A (en) * | 2018-05-29 | 2018-11-16 | 深圳市华星光电技术有限公司 | A kind of hardware control, control method and the liquid crystal display of Nand equipment |
-
2018
- 2018-12-04 CN CN201811474653.8A patent/CN109614044A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657088A (en) * | 2015-02-06 | 2015-05-27 | 深圳市锐明视讯技术有限公司 | Acquisition method and device for bad block information of hard disk |
CN106469022A (en) * | 2015-08-20 | 2017-03-01 | 维布络有限公司 | The memory management method of memory driver and system |
CN108614743A (en) * | 2016-12-09 | 2018-10-02 | 北京京存技术有限公司 | Super data block processing method and device based on NAND flash |
CN106873903A (en) * | 2016-12-30 | 2017-06-20 | 北京联想核芯科技有限公司 | Date storage method and device |
CN108829347A (en) * | 2018-05-29 | 2018-11-16 | 深圳市华星光电技术有限公司 | A kind of hardware control, control method and the liquid crystal display of Nand equipment |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112579328A (en) * | 2019-09-27 | 2021-03-30 | 北京忆恒创源科技有限公司 | Method for processing programming error and storage device |
CN111124296A (en) * | 2019-12-12 | 2020-05-08 | 北京浪潮数据技术有限公司 | Method, device, equipment and storage medium for writing data to solid state disk |
CN111124296B (en) * | 2019-12-12 | 2023-03-14 | 北京浪潮数据技术有限公司 | Method, device, equipment and storage medium for writing data to solid state disk |
CN111580757A (en) * | 2020-05-14 | 2020-08-25 | 江苏芯盛智能科技有限公司 | Data writing method and system and solid state disk |
CN111580757B (en) * | 2020-05-14 | 2022-10-14 | 江苏芯盛智能科技有限公司 | Data writing method and system and solid state disk |
CN112885402A (en) * | 2020-12-29 | 2021-06-01 | 北京浪潮数据技术有限公司 | Solid state disk bad block query method and device and computer readable storage medium |
CN112885402B (en) * | 2020-12-29 | 2023-12-22 | 北京浪潮数据技术有限公司 | Method and device for querying bad blocks of solid state disk and computer readable storage medium |
WO2023124571A1 (en) * | 2021-12-28 | 2023-07-06 | 深圳大普微电子科技有限公司 | Storage medium failure processing method and apparatus, and solid state disk |
CN116382576A (en) * | 2023-03-17 | 2023-07-04 | 平头哥(上海)半导体技术有限公司 | Storage control chip, solid state disk and related method |
CN116382576B (en) * | 2023-03-17 | 2024-02-27 | 平头哥(上海)半导体技术有限公司 | Storage control chip, solid state disk and related method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109614044A (en) | A kind of processing method, device and the equipment of solid state hard disk write error | |
US11960729B2 (en) | Method of increasing flash endurance by improved metadata management | |
US9600184B2 (en) | Apparatus, system, and method for coordinating storage requests in a multi-processor/multi-thread environment | |
US10949108B2 (en) | Enhanced application performance in multi-tier storage environments | |
KR101628675B1 (en) | Apparatus, system, and method for converting a storage request into an append data storage command | |
US10621051B2 (en) | Logical to physical table restoration from stored journal entries | |
US9170899B2 (en) | Reliability scheme using hybrid SSD/HDD replication with log structured management | |
US8819338B2 (en) | Storage system and storage apparatus | |
US10013166B2 (en) | Virtual tape library system | |
US20120233396A1 (en) | Apparatus, system, and method for efficient mapping of virtual and physical addresses | |
CN103530237B (en) | A kind of rubbish recovering method of Solid-state disc array | |
US10621085B2 (en) | Storage system and system garbage collection method | |
KR20140053309A (en) | Cache management including solid state device virtualization | |
CN105138469A (en) | Data reading and writing method and main board | |
TWI774388B (en) | Method of data synchronization | |
CN116257460B (en) | Trim command processing method based on solid state disk and solid state disk | |
CN107451069A (en) | The rubbish recovering method of Solid-state disc array based on headspace | |
CN105827681A (en) | Backup data transmission method under SAN (Storage Area Network) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190412 |
|
RJ01 | Rejection of invention patent application after publication |