Scanning method, device and equipment of SSD hard disk and storage medium

By analyzing the processing time difference of SSD hard disk storage blocks and controlling the execution of the scanning function, the problem of resource waste caused by full disk scanning inside the host and SSD is solved, and more efficient resource utilization is achieved.

CN115691631BActive Publication Date: 2026-07-24SLICONGO MICROELECTRONICS INC
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SLICONGO MICROELECTRONICS INC
Filing Date
2022-09-14
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In existing technologies, both the host's file system and the SSD's internal system have full-disk scanning capabilities, causing system resources to repeatedly perform error correction and rewriting on large amounts of data.

Method used

By receiving read/write commands and full-disk scan commands, the processing time of storage blocks is analyzed, the processing time difference is calculated, and it is determined whether the threshold is exceeded. If it is exceeded, error correction and rewriting are performed; if it is not exceeded, the processing is skipped. The execution of the scanning function is controlled on the host and inside the SSD to optimize resource utilization.

Benefits of technology

It effectively reduces the consumption of system resources, avoids repeated error correction and rewriting operations, and improves resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115691631B_ABST
    Figure CN115691631B_ABST
Patent Text Reader

Abstract

The application relates to the field of hard disk scanning, and discloses a scanning method, device and equipment of an SSD hard disk and a storage medium. The method comprises the following steps: receiving a read-write instruction, performing read-write processing on a storage block corresponding to the read-write instruction, and recording a processing time of the storage block; receiving a full-disk scanning instruction, analyzing the processing time of each storage block in an SSD disk, and obtaining a processing time difference set; extracting a processing time difference in the processing time difference set, judging whether the processing time difference exceeds a preset time difference threshold; if yes, performing error correction and rewriting processing on a storage block corresponding to the processing time difference; and if not, skipping the operation processing on the storage block corresponding to the processing time difference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hard disk scanning, and more particularly to a scanning method, apparatus, device, and storage medium for SSD hard disks. Background Technology

[0002] To avoid data retention issues that can occur when NAND data is stored for too long, both the host file system and the SSD itself may have a full disk scan function. Solid-state drives typically employ Read Scrub technology, also known as data inspection or scan-and-rewrite technology.

[0003] Read Scrub technology is a feature of the ZFS (Zettabyte File System) file system developed by Sun Microsystems. The designers of ZFS discovered that user data that hadn't been read for a long time, even in database applications with frequent data access, still contained data that hadn't been accessed for extended periods. Regardless of the disk type, there's always a probability of bit flips occurring when data isn't read, leading to data corruption. When this data is finally read, the errors may be severe enough to be unrecoverable. Each data block has its own checksum. Once read, the checksum can be used to detect data errors and correct them proactively. Therefore, ZFS provides a feature called Scrub, which scans the file system to identify and correct corrupted data.

[0004] However, both the host's file system and the SSD's internal data processing have a full-disk scan function, causing the system to spend excessive resources repeatedly correcting and rewriting large amounts of data. A new technology is needed to solve this problem. Summary of the Invention

[0005] The main objective of this invention is to solve the technical problem that the host file system and the internal data processing of the SSD both have a full-disk scan function, which causes the system to spend too many resources repeatedly correcting and rewriting a large amount of data.

[0006] The first aspect of the present invention provides a scanning method for an SSD hard drive, the scanning method for the SSD hard drive comprising:

[0007] Receive read / write instructions, perform read / write processing on the storage block corresponding to the read / write instructions, and record the processing time of the storage block;

[0008] Receive a full disk scan command, analyze the processing time of each storage block in the SSD, and obtain a set of processing time differences;

[0009] Extract the processing time difference from the processing time difference set and determine whether the processing time difference exceeds a preset time difference threshold;

[0010] If the time difference exceeds the limit, the storage block corresponding to the processing time difference will be corrected and rewritten.

[0011] If the time difference is not exceeded, the processing of the storage block corresponding to the processing time difference is skipped.

[0012] Optionally, in a first implementation of the first aspect of the present invention, the step of receiving a full disk scan command, analyzing the processing time of each storage block in the SSD, and obtaining a set of processing time differences includes:

[0013] Receive a full-disk scan command and read the scan time corresponding to the full-disk scan command;

[0014] Analyze the processing time of each storage block in the SSD to obtain a set of processing times;

[0015] The processing time difference set is obtained by subtracting the scanning time from the processing time set.

[0016] Optionally, in a second implementation of the first aspect of the present invention, receiving the full-disk scan command includes:

[0017] Receive a full disk scan command and analyze the data source of the full disk scan command, wherein the data source includes: host controller source and SSD hard drive source;

[0018] If the data source is the host controller, then the execution of the full disk scan command for the SSD is disabled;

[0019] If the data source is an SSD, then disable the full disk scan command execution on the host controller.

[0020] Optionally, in a third implementation of the first aspect of the present invention, the error correction and rewriting process for the storage block corresponding to the processing time difference includes:

[0021] Determine whether there is written data in the storage block corresponding to the processing time difference;

[0022] If it does not exist, skip the storage block corresponding to the processing time difference;

[0023] If it exists, then the storage block corresponding to the processing time difference will be subjected to error correction and rewriting.

[0024] Optionally, in a fourth implementation of the first aspect of the present invention, the step of performing read / write processing on the storage block corresponding to the read / write instruction and recording the processing time of the storage block includes:

[0025] Perform read / write operations on the storage block corresponding to the read / write instruction, and record the time when the read / write counter corresponding to the storage block returns to zero.

[0026] Optionally, in a fifth implementation of the first aspect of the present invention, the error correction and rewriting process for the storage block corresponding to the processing time difference includes:

[0027] Read the number of flash page flips in the storage block corresponding to the processing time difference;

[0028] Determine whether the number of flash page flips is greater than a preset rewrite threshold;

[0029] If the value exceeds the rewrite threshold, the storage block will be subjected to error correction and rewrite processing.

[0030] Optionally, in a sixth implementation of the first aspect of the present invention, the error correction and rewriting process for the storage block includes:

[0031] Select a blank storage block in the SSD hard drive, copy the data of the storage block corresponding to the processing time difference into the blank storage block, and obtain the rewrite storage block;

[0032] Erase all data in the storage block corresponding to the processing time difference.

[0033] A second aspect of the present invention provides a scanning device for an SSD hard disk, the scanning device comprising:

[0034] The read / write module is used to receive read / write instructions, perform read / write processing on the storage block corresponding to the read / write instructions, and record the processing time of the storage block;

[0035] The scanning module is used to receive full disk scan commands, analyze the processing time of each storage block in the SSD, and obtain the processing time difference set;

[0036] The judgment module is used to extract the processing time difference from the processing time difference set and determine whether the processing time difference exceeds a preset time difference threshold.

[0037] The error correction and rewriting module is used to perform error correction and rewriting processing on the storage block corresponding to the processing time difference if the time exceeds the limit.

[0038] The processing ignore module is used to skip the operation processing of the storage block corresponding to the processing time difference if the time difference has not been exceeded.

[0039] A third aspect of the present invention provides a scanning device for an SSD hard disk, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a circuit; the at least one processor invokes the instructions in the memory to cause the scanning device for the SSD hard disk to perform the above-described scanning method for the SSD hard disk.

[0040] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the above-described SSD hard disk scanning method.

[0041] In this embodiment of the invention, when performing a Read Scrub scan on the host, the SSD can disable the scanning function. However, when the scanning function is enabled internally on the SSD, the read / write timestamps of the SSD's data blocks are read. If the host controller has read the corresponding data block data within a certain time, no scan will be performed. Instead, data blocks older than a certain time are scanned, reducing resource consumption. This solution solves the technical problem that both the host's file system and the SSD's internal data processing have full-disk scan functions, causing the system to spend excessive resources repeatedly correcting and rewriting large amounts of data. Attached Figure Description

[0042] Figure 1 This is a schematic diagram of one embodiment of the scanning method for SSD hard drives in this invention;

[0043] Figure 2 This is a schematic diagram of another embodiment of the SSD hard disk scanning method in this invention;

[0044] Figure 3 This is a schematic diagram of one embodiment of the scanning device for SSD hard drives in this invention;

[0045] Figure 4 This is a schematic diagram of another embodiment of the scanning device for SSD hard drives in this invention;

[0046] Figure 5 This is a schematic diagram of one embodiment of the scanning device for SSD hard drives in this invention. Detailed Implementation

[0047] This invention provides a scanning method, apparatus, device, and storage medium for SSD hard drives.

[0048] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0049] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of the SSD hard disk scanning method in this invention includes:

[0050] 101. Receive read / write instructions, perform read / write operations on the storage blocks corresponding to the read / write instructions, and record the processing time of the storage blocks;

[0051] 102. Receive a full disk scan command, analyze the processing time of each storage block in the SSD, and obtain the processing time difference set;

[0052] 103. Extract the processing time difference from the processing time difference set and determine whether the processing time difference exceeds the preset time difference threshold;

[0053] 104. If the time difference exceeds the limit, the storage block corresponding to the processing time difference will be corrected and rewritten.

[0054] 105. If the time limit is not exceeded, skip the processing of the storage block operation corresponding to the processing time difference.

[0055] In steps 101-105, the Trap-assisted tunneling (TAT) effect occurs: the tunnel oxide layer is insulating, but with the use of flash memory and numerous erase / write cycles, the oxide layer and floating gate layer wear down, leaving charge trapped in the oxide layer. This causes the insulator to become conductive, allowing the charge to move more quickly from the floating gate. Therefore, the more times a flash memory is erased and written, the shorter the data retention time. When the rated erase / write cycles are nearing completion, such as 3000, newly written data is prone to errors. Daily read / write operations record the processing time of each storage block after reading and writing. Then, both the SSD and the host controller perform a Read Scrub scan. Read Scrub is a full disk scan, but data that has already been read or written does not need to be scanned again. The processing time serves as the basis for whether to scan the storage block. The processing time difference is the difference between the full disk scan time and the read / write processing time. It is determined whether this difference exceeds a time difference threshold. If it does, error correction processing is performed on the storage block; otherwise, processing of the storage block is skipped. For example, if the time difference threshold is set to 14 days, the storage block needs to be re-read and rewritten for error correction if the processing interval exceeds 14 days, but does not need to be processed if it does not exceed 14 days.

[0056] Furthermore, the following steps can be performed on 101:

[0057] 1011. Perform read / write operations on the memory block corresponding to the read / write instruction, and record the time when the read / write counter for the memory block reaches zero.

[0058] In this embodiment, the Read cnt of the storage block is monitored, and the time when the Read cnt read / write counter returns to zero is recorded as the processing time, overwriting the previous time when it returns to zero.

[0059] Furthermore, the following steps can be performed at 104:

[0060] 1041. The number of flash page flip bits in the memory block corresponding to the read processing time difference;

[0061] 1042. Determine if the number of flash page flips exceeds the preset rewrite threshold;

[0062] 1043. If the value exceeds the rewrite threshold, the storage block will be corrected and rewritten.

[0063] In steps 1041-1043, if the number of flipped bits is high, the stored data block is moved to a blank storage block by means of transport. If the number of flipped bits is not very high and is less than the rewrite threshold, the storage block can be rewritten and overwritten using memory space.

[0064] Furthermore, the following steps can be performed at 1043:

[0065] 10431. Select a blank storage block in the SSD hard drive, copy the data of the storage block corresponding to the processing time difference into the blank storage block, and obtain the rewrite storage block;

[0066] 10432. Erase all data in the storage block corresponding to the time difference of the erase process.

[0067] In steps 10431-10432, if the number of flipped bits is too large, the data of the storage block is copied into a blank storage block by means of transfer, and then the data of the original storage block is erased to realize the rewrite and error correction process.

[0068] In this embodiment of the invention, when performing a Read Scrub scan on the host, the SSD can disable the scanning function. However, when the scanning function is enabled internally on the SSD, the read / write timestamps of the SSD's data blocks are read. If the host controller has read the corresponding data block data within a certain time, no scan will be performed. Instead, data blocks older than a certain time are scanned, reducing resource consumption. This solution solves the technical problem that both the host's file system and the SSD's internal data processing have full-disk scan functions, causing the system to spend excessive resources repeatedly correcting and rewriting large amounts of data.

[0069] Please see Figure 2 Another embodiment of the SSD hard disk scanning method in this invention includes:

[0070] 201. Receive read / write instructions, perform read / write processing on the storage block corresponding to the read / write instructions, and record the processing time of the storage block;

[0071] The steps in this embodiment are similar to those in the first embodiment, and will not be repeated here. Please refer to the first embodiment.

[0072] 202. Receive the full disk scan command and read the scan time corresponding to the full disk scan command;

[0073] 203. Analyze the processing time of each storage block in the SSD to obtain the processing time set;

[0074] 204. Subtract the scanning time from the processing time set to obtain the processing time difference set;

[0075] In steps 202-204, the full scan command includes the issuance time. The issuance time is used as the scan time. Then, the processing time of each storage block is read. Each processing time is subtracted from the scan time to obtain a difference. This difference is determined as the processing time difference, and the processing time difference set of the SSD disk is generated.

[0076] Furthermore, the following steps can be performed when "receiving a full disk scan command":

[0077] 2021. Receive full disk scan commands and analyze the data sources of the full disk scan commands, including: host controller source and SSD hard drive source;

[0078] 2022. When the data source is the host controller, disable the execution of the full disk scan command for the SSD.

[0079] 2023. When the data source is an SSD, disable the execution of the full disk scan command on the host controller.

[0080] In steps 2021-2023, when executing a full disk scan command, it's necessary to analyze the source of the scan command, specifically whether it originates from the host controller or the SSD. This prevents both the SSD and the host controller from issuing full disk scans at the same time, avoiding a situation where scans occur on both ends. If the source is the host controller, the execution of full disk scan commands from the SSD is disabled; conversely, if the source is the SSD, the execution of full disk scan commands from the host controller is disabled.

[0081] 205. Extract the processing time difference from the processing time difference set and determine whether the processing time difference exceeds the preset time difference threshold;

[0082] The steps in this embodiment are similar to those in the first embodiment, and will not be repeated here. Please refer to the first embodiment.

[0083] 206. If the time limit is exceeded, determine whether there is written data in the storage block corresponding to the processing time difference;

[0084] 207. If it does not exist, skip the storage block corresponding to the processing time difference;

[0085] 208. If it exists, then perform error correction and rewriting on the storage block corresponding to the processing time difference;

[0086] In steps 206-208, it is determined whether there is still data to be written to the data block with the processing time difference. Since there may be deletion during the read and write process, if the storage block is already blank, there is no need to perform error correction. However, if there is still data in the storage block, the error correction and rewriting process is still required.

[0087] 209. If the time difference is not exceeded, skip the processing of the storage block operation corresponding to the processing time difference.

[0088] The steps in this embodiment are similar to those in the first embodiment, and will not be repeated here. Please refer to the first embodiment.

[0089] In this embodiment of the invention, when performing a Read Scrub scan on the host, the SSD can disable the scanning function. However, when the scanning function is enabled internally on the SSD, the read / write timestamps of the SSD's data blocks are read. If the host controller has read the corresponding data block data within a certain time, no scan will be performed. Instead, data blocks older than a certain time are scanned, reducing resource consumption. This solution solves the technical problem that both the host's file system and the SSD's internal data processing have full-disk scan functions, causing the system to spend excessive resources repeatedly correcting and rewriting large amounts of data.

[0090] The scanning method for SSD hard drives in the embodiments of the present invention has been described above. The scanning device for SSD hard drives in the embodiments of the present invention will be described below. Please refer to [link / reference]. Figure 3 One embodiment of the scanning device for SSD hard drives in this invention includes:

[0091] The read / write module 301 is used to receive read / write instructions, perform read / write processing on the storage block corresponding to the read / write instructions, and record the processing time of the storage block;

[0092] The scanning module 302 is used to receive a full disk scan command, analyze the processing time of each storage block in the SSD, and obtain a set of processing time differences;

[0093] The judgment module 303 is used to extract the processing time difference from the processing time difference set and determine whether the processing time difference exceeds a preset time difference threshold.

[0094] The error correction and rewriting module 304 is used to perform error correction and rewriting processing on the storage block corresponding to the processing time difference if the time difference exceeds the limit.

[0095] The processing ignore module 305 is used to skip the processing of the storage block operation corresponding to the processing time difference if the time difference has not been exceeded.

[0096] In this embodiment of the invention, when performing a Read Scrub scan on the host, the SSD can disable the scanning function. However, when the scanning function is enabled internally on the SSD, the read / write timestamps of the SSD's data blocks are read. If the host controller has read the corresponding data block data within a certain time, no scan will be performed. Instead, data blocks older than a certain time are scanned, reducing resource consumption. This solution solves the technical problem that both the host's file system and the SSD's internal data processing have full-disk scan functions, causing the system to spend excessive resources repeatedly correcting and rewriting large amounts of data.

[0097] Please see Figure 4 Another embodiment of the SSD hard disk scanning device in this invention includes:

[0098] The read / write module 301 is used to receive read / write instructions, perform read / write processing on the storage block corresponding to the read / write instructions, and record the processing time of the storage block;

[0099] The scanning module 302 is used to receive a full disk scan command, analyze the processing time of each storage block in the SSD, and obtain a set of processing time differences;

[0100] The judgment module 303 is used to extract the processing time difference from the processing time difference set and determine whether the processing time difference exceeds a preset time difference threshold.

[0101] The error correction and rewriting module 304 is used to perform error correction and rewriting processing on the storage block corresponding to the processing time difference if the time difference exceeds the limit.

[0102] The processing ignore module 305 is used to skip the processing of the storage block operation corresponding to the processing time difference if the time difference has not been exceeded.

[0103] Specifically, the scanning module 302 is used for:

[0104] Receive a full-disk scan command and read the scan time corresponding to the full-disk scan command;

[0105] Analyze the processing time of each storage block in the SSD to obtain a set of processing times;

[0106] The processing time difference set is obtained by subtracting the scanning time from the processing time set.

[0107] The scanning module 302 can also be specifically used for:

[0108] Receive a full disk scan command and analyze the data source of the full disk scan command, wherein the data source includes: host controller source and SSD hard drive source;

[0109] If the data source is the host controller, then the execution of the full disk scan command for the SSD is disabled;

[0110] If the data source is an SSD, then disable the full disk scan command execution on the host controller.

[0111] Specifically, the error correction and rewriting module 304 is used for:

[0112] Determine whether there is written data in the storage block corresponding to the processing time difference;

[0113] If it does not exist, skip the storage block corresponding to the processing time difference;

[0114] If it exists, then the storage block corresponding to the processing time difference will be subjected to error correction and rewriting.

[0115] Specifically, the read / write module 301 is used for:

[0116] Perform read / write operations on the storage block corresponding to the read / write instruction, and record the time when the read / write counter corresponding to the storage block returns to zero.

[0117] The error correction and rewriting module 304 includes:

[0118] Reading unit 3041 is used to read the number of flash page flip bits of the storage block corresponding to the processing time difference;

[0119] The judgment unit 3042 is used to determine whether the number of flash memory page flip bits is greater than a preset rewrite threshold.

[0120] The rewrite unit 3043 is used to perform error correction and rewrite processing on the storage block if the value is greater than the rewrite threshold.

[0121] Specifically, the rewriting unit 3043 is used for:

[0122] Select a blank storage block in the SSD hard drive, copy the data of the storage block corresponding to the processing time difference into the blank storage block, and obtain the rewrite storage block;

[0123] Erase all data in the storage block corresponding to the processing time difference.

[0124] In this embodiment of the invention, when performing a Read Scrub scan on the host, the SSD can disable the scanning function. However, when the scanning function is enabled internally on the SSD, the read / write timestamps of the SSD's data blocks are read. If the host controller has read the corresponding data block data within a certain time, no scan will be performed. Instead, data blocks older than a certain time are scanned, reducing resource consumption. This solution solves the technical problem that both the host's file system and the SSD's internal data processing have full-disk scan functions, causing the system to spend excessive resources repeatedly correcting and rewriting large amounts of data.

[0125] above Figure 3 and Figure 4 The scanning device for SSD hard drives in this embodiment of the invention will be described in detail from the perspective of modular functional entities. The scanning device for SSD hard drives in this embodiment of the invention will be described in detail from the perspective of hardware processing.

[0126] Figure 5This is a schematic diagram of the structure of an SSD hard disk scanning device 500 provided in an embodiment of the present invention. The SSD hard disk scanning device 500 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing application programs 533 or data 532. The memory 520 and storage media 530 can be temporary or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the SSD hard disk scanning device 500. Furthermore, the processor 510 may be configured to communicate with the storage media 530 and execute the series of instruction operations in the storage media 530 on the SSD hard disk scanning device 500.

[0127] The SSD-based scanning device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 5 The illustrated SSD scanning device structure does not constitute a limitation on SSD-based scanning devices, which may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0128] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of the scanning method of the SSD hard disk.

[0129] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0130] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0131] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A scanning method for SSD hard drives, characterized in that, Including the following steps: Receive read / write instructions, perform read / write processing on the storage block corresponding to the read / write instructions, and record the processing time of the storage block; Receive a full disk scan command, analyze the processing time of each storage block in the SSD, and obtain a set of processing time differences; Extract the processing time difference from the processing time difference set and determine whether the processing time difference exceeds a preset time difference threshold; If the time difference exceeds the limit, the storage block corresponding to the processing time difference will be corrected and rewritten. If the time difference is not exceeded, the processing of the storage block corresponding to the processing time difference is skipped. The process of receiving a full disk scan command, analyzing the processing time of each storage block in the SSD, and obtaining a set of processing time differences includes: Receive a full-disk scan command and read the scan time corresponding to the full-disk scan command; Analyze the processing time of each storage block in the SSD to obtain a set of processing times; The processing time difference set is obtained by subtracting the scanning time from the processing time set.

2. The SSD hard disk scanning method according to claim 1, characterized in that, The receiving of the full disk scan command includes: Receive a full disk scan command and analyze the data source of the full disk scan command, wherein the data source includes: host controller source and SSD hard drive source; If the data source is the host controller, then the execution of the full disk scan command for the SSD is disabled; If the data source is an SSD, then disable the full disk scan command execution on the host controller.

3. The SSD hard disk scanning method according to claim 1, characterized in that, The error correction and rewriting process for the storage block corresponding to the processing time difference includes: Determine whether there is written data in the storage block corresponding to the processing time difference; If it does not exist, skip the storage block corresponding to the processing time difference; If it exists, then the storage block corresponding to the processing time difference will be subjected to error correction and rewriting.

4. The SSD hard disk scanning method according to claim 1, characterized in that, The process of reading and writing the storage block corresponding to the read / write instruction, and recording the processing time of the storage block, includes: Perform read / write operations on the storage block corresponding to the read / write instruction, and record the time when the read / write counter corresponding to the storage block returns to zero.

5. The SSD hard disk scanning method according to claim 4, characterized in that, The error correction and rewriting process for the storage block corresponding to the processing time difference includes: Read the number of flash page flips in the storage block corresponding to the processing time difference; Determine whether the number of flash page flips is greater than a preset rewrite threshold; If the value exceeds the rewrite threshold, the storage block will be subjected to error correction and rewrite processing.

6. The SSD hard disk scanning method according to claim 5, characterized in that, The error correction and rewriting process for the storage block includes: Select a blank storage block in the SSD hard drive, copy the data of the storage block corresponding to the processing time difference into the blank storage block, and obtain the rewrite storage block; Erase all data in the storage block corresponding to the processing time difference.

7. A scanning device for SSD hard drives, characterized in that, The scanning device for the SSD hard drive includes: The read / write module is used to receive read / write instructions, perform read / write processing on the storage block corresponding to the read / write instructions, and record the processing time of the storage block; The scanning module is used to receive full disk scan commands, analyze the processing time of each storage block in the SSD, and obtain the processing time difference set; The judgment module is used to extract the processing time difference from the processing time difference set and determine whether the processing time difference exceeds a preset time difference threshold. The error correction and rewriting module is used to perform error correction and rewriting processing on the storage block corresponding to the processing time difference if the time exceeds the limit. The processing ignore module is used to skip the operation processing of the storage block corresponding to the processing time difference if the time difference has not been exceeded. The process of receiving a full disk scan command, analyzing the processing time of each storage block in the SSD, and obtaining a set of processing time differences includes: Receive a full-disk scan command and read the scan time corresponding to the full-disk scan command; Analyze the processing time of each storage block in the SSD to obtain a set of processing times; The processing time difference set is obtained by subtracting the scanning time from the processing time set.

8. A scanning device for SSD hard drives, characterized in that, The scanning device for the SSD hard drive includes: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor invokes the instructions in the memory to cause the scanning device of the SSD hard disk to perform the SSD hard disk scanning method as described in any one of claims 1-6.

9. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the SSD hard disk scanning method as described in any one of claims 1-6.